SignalUtils::AmpltToLog Function

double AmpltToLog(TDenseMtxVec *Data, double Base, double span, double aMax, double aScale, bool Normalized);

Convert amplitude to logarithmic scale.

#NameTypeDescription
1DataTDenseMtxVec *
2Basedouble
3spandouble
4aMaxdouble
5aScaledouble
6Normalizedbool
Remarks:

Applies logarithm to Data. Base is the base of the logarithm and should be 10, if decibels are desired. The logarithm is then scaled by aScale according to the formula LogN(Base,Value)*aScale. Span defines the dynamic range on the left axis. If aScale is 20 and base is 10, the Span is in dB. The values below -span will be clipped. If Normalized is True, the maximum will be set to zero and minimum to -Span. The function returns -Span.

Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler