May I suggest to rename the factor
argument to exponent
(or oversamplingExponent
) in the constructor of dsp::Oversampling
?
The current state can be confusing because dsp::Oversampling.getOversamplingFactor()
returns 2^factor
. E.g. when dsp::Oversampling.getOversamplingFactor()
is used to create a new instance of dsp::Oversampling
.