/// <summary> /// Initialize the values /// </summary> public AverageManager(AverageManagerOptions options) { // Set the options _options = options; // Set the timer SetTimer(); // Initialize values _refLayerAverager = new ReferenceLayerAverage(_options.NumSamples, _options.MinRefLayer, _options.MaxRefLayer, _options.IsAvgRunning); _correlationAverager = new AverageCorrelation(); _amplitudeAverager = new AverageAmplitude(); _beamVelAverager = new AverageBeamVelocity(); _instrumentVelAverager = new AverageInstrumentVelocity(); _earthVelAverager = new AverageEarthVelocity(); _bottomTrackAverager = new AverageBottomTrack(); }
/// <summary> /// Initialize the values /// </summary> public AverageManager(AverageManagerOptions options) { // Set the options _options = options; _avgTimer = new Timer(_options.TimerMilliseconds); _avgTimer.Elapsed += new ElapsedEventHandler(_avgTimer_Elapsed); // Initialize values _refLayerAverager = new ReferenceLayerAverage(_options.NumSamples, _options.MinRefLayer, _options.MaxRefLayer, _options.IsRunningAverage); _correlationAverager = new AverageCorrelation(); _amplitudeAverager = new AverageAmplitude(); _beamVelAverager = new AverageBeamVelocity(); _instrumentVelAverager = new AverageInstrumentVelocity(); _earthVelAverager = new AverageEarthVelocity(); _bottomTrackAverager = new AverageBottomTrack(); }