TSpectrumStats Class

Header: Dew.Signal/SignalAnalysis.h · Cross-compiler
tObjectTSpectrumStats

class TSpectrumStats : public tObject;

Encapsulates properties for averaging and confidence interval calculation of the spectrum.

Encapsulates properties for averaging and confidence interval calculation of the spectrum.

Constructors

NameDescription
TSpectrumStats (2)

Destructors

NameDescription
~TSpectrumStats

Properties

NameTypeDescription
AveragedintContains the number of averages made so far.
AveragedSpectrumTSpectrum*
AveragesintDefines the number of averages to make.
AveragingTAveragingDefines the type of averaging to perform.
CalcLimitsboolIf True, the upper and lower limits of the confidence interval will be calculated and placed in UpperLimit and LowerLimit.
CalcMinMaxboolIf True, the averaging process will also compute the standard deviation.
CalcStdDevboolIf True, the averaging process will also compute the standard deviation for each spectral line.
ConfidenceIntervaldoubleDefines the confidence interval in percent to determine the upper and lower confidence limit.
ExpDecayintThe parameter for the exponential averaging.
LowerLimitTVecList*Holds a list of vectors with lower confidence interval limits.
RecursiveboolIf True the result is computed each time a new spectrum is added.
StdDevTVecList*If CalcStdDev is True and frequency spectrum has been averaged, this property contains the standard deviation of Amplt and Phase vectors.
UpperLimitTVecList*Holds a list of vectors with upper confidence interval limits.

Methods

NameDescription
ConfidenceLimitsPresentReturns true, if confidence intervals have been computed and are available.
ResetReset the averaging process and deallocate any associated memory.
UpdateApply averaging. Called by TSpectrumAnalyzer.
UpdateStatsComputes average and standard deviations of the spectrums optionally with upper and lower confidence levels, if Recursive property was false while spectrums were added.
UpdateStatsAmpltLimitsRecalculates limits considering the current value of the ConfidenceInterval.
UpdateStatsLimitsRecalculates limits considering the current value of the ConfidenceInterval.