Loris::FundamentalEstimator Class Reference
#include <Fundamental.h>
List of all members.
Detailed Description
Base class for fundamental estimation, common storage for member variable parameters, type definitions, and constants.
Member Enumeration Documentation
- Enumerator:
DefaultAmpRange |
the default absolute amplitude threshold in dB
|
DefaultFreqCeiling |
the default floating amplitude threshold in dB
|
DefaultPrecisionOver100 |
the default frequency threshold in Hz
|
DefaultMinConfidencePct |
the default frequency precision in 1/100 Hz
|
Constructor & Destructor Documentation
Loris::FundamentalEstimator::FundamentalEstimator |
( |
double |
precisionHz |
) |
[protected] |
Construct a new estimator with specified precision and other parameters given default values.
The specified precision is used to terminate the iterative estimation procedure.
- Parameters:
-
| precisionHz | is the precision in Hz with which the fundamental estimates will be made. |
Member Function Documentation
double Loris::FundamentalEstimator::ampFloor |
( |
void |
|
) |
const |
Return the absolute amplitude threshold in (negative) dB, below which spectral peaks will not be considered in the estimation of the fundamental (default is 30 dB).
double Loris::FundamentalEstimator::ampRange |
( |
void |
|
) |
const |
Return the amplitude range in dB, relative to strongest peak in a frame, floating amplitude threshold (negative) below which spectral peaks will not be considered in the estimation of the fundamental (default is 30 dB).
double Loris::FundamentalEstimator::freqCeiling |
( |
void |
|
) |
const |
Return the frequency ceiling in Hz, the frequency threshold above which spectral peaks will not be considered in the estimation of the fundamental (default is 10 kHz).
double Loris::FundamentalEstimator::precision |
( |
void |
|
) |
const |
Return the precision of the estimate in Hz, the fundamental frequency will be estimated to within this range (default is 0.1 Hz).
void Loris::FundamentalEstimator::setAmpFloor |
( |
double |
x |
) |
|
Set the absolute amplitude threshold in (negative) dB, below which spectral peaks will not be considered in the estimation of the fundamental (default is 30 dB).
- Parameters:
-
| x | is the new value of this parameter. |
void Loris::FundamentalEstimator::setAmpRange |
( |
double |
x |
) |
|
Set the amplitude range in dB, relative to strongest peak in a frame, floating amplitude threshold (negative) below which spectral peaks will not be considered in the estimation of the fundamental (default is 30 dB).
- Parameters:
-
| x | is the new value of this parameter. |
void Loris::FundamentalEstimator::setFreqCeiling |
( |
double |
x |
) |
|
Set the frequency ceiling in Hz, the frequency threshold above which spectral peaks will not be considered in the estimation of the fundamental (default is 10 kHz). Must be greater than the lower bound.
- Parameters:
-
| x | is the new value of this parameter. |
void Loris::FundamentalEstimator::setPrecision |
( |
double |
x |
) |
|
Set the precision of the estimate in Hz, the fundamental frequency will be estimated to within this range (default is 0.1 Hz).
- Parameters:
-
| x | is the new value of this parameter. |
Member Data Documentation
in Hz, fundamental frequency will be estimated to within this range (default is 0.1 Hz)
absolute amplitude threshold below which spectral peaks will not be considered in the estimation of the fundamental (default is equivalent to 60 dB quieter than a full scale sinusoid)
floating amplitude threshold relative to the peak having the largest magnitude below which spectral peaks will not be considered in the estimation of the fundamental (default is equivalent to 30 dB)
The documentation for this class was generated from the following file: