Double AmpltToLog(TDenseMtxVec Data, Double Base, Double Span, Double aMax, Double aScale, Boolean Normalized)
Convert amplitude to logarithmic scale.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TDenseMtxVec | source TVec or TMtx |
| 2 | Base | Double | scalar |
| 3 | Span | Double | scalar |
| 4 | aMax | Double | scalar |
| 5 | aScale | Double | scalar |
| 6 | Normalized | Boolean |
Returns: Double
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.