This function estimates the flatness of a frequency spectrum.
Usage
sfm(spec)
Arguments
spec
a data set resulting of a spectral analysis obtained
with spec or meanspec (not in dB).
Value
A single value varying between 0 and 1 is returned.
The value has no unit.
Details
SFM is calculated as the ratio between the geometric mean and the
arithmetic mean :
$$F = N\times{\frac{\sqrt[N]{\prod_{i=1}^N{y_i}}}{\sum_{i=1}^N{y_i}}}$$
with:
y = relative amplitude of the i frequency,
and N = number of frequencies.