Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double Peak(double aMax, double aMin, double aMean); | Find the maximum absolute deviation from the mean. |
| 2 | double Peak(TCplx aMax, TCplx aMin, TCplx aMean); | Find the maximum deviation from the aMean for complex data. |
Overload 1: double Peak(double aMax, double aMin, double aMean);
Find the maximum absolute deviation from the mean.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aMax | double | The maximum sample value x_(max). |
| 2 | aMin | double | The minimum sample value x_(min). |
| 3 | aMean | double | The signal mean x. |
Returns: The peak deviation x_(peak) >= 0.
Remarks:
Returns the larger of the upward and downward excursions of a signal about its mean:
x_(peak) = max( | x_(max)-x|, | x-x_(min)| ) where aMax = x_(max) is the maximum value, aMin = x_(min) is the minimum value and aMean = x is the signal average. The result is always non-negative and feeds directly into the crest factor.
See Also: SignalUtils::Crest
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler