Algorithmic/Signal Processing/Spectrum
Block Name: DB
Code File Location: VisualSim/actor/lib/DB
Produce a token that is the value of the input in decibels. That is, if the input is z, then the output is k*log10(z). The constant k depends on the value of the inputIsPower parameter. If that parameter is true, then k = 10. Otherwise (the default) k = 20. Normally, you would set inputIsPower to true if the input is the square of a signal, and to false otherwise.
The output is never smaller than the value of the min parameter. This makes it easier to plot by limiting the range of output values. If the input is zero or negative, then the output is the value of the min parameter.
The input and output both have type double.
Since:
VisualSim 1.0
Parameter |
Explanation |
Type |
Example |
inputIsPower |
If the input is proportional to power, then set this to true. |
Boolean |
false |
min |
The minimum value of the output. |
Double |
-100.0 |
Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle