Skip to content

Conversation

mitja-p
Copy link

@mitja-p mitja-p commented Jun 5, 2023

As mentioned in #18 there is now additional parameter in FirCoefficients that is missing here. For compatibility reasons I have set Gain to 1.

As mentioned in mathnet#18 there is now additional parameter in FirCoefficients that is missing here. For compatibility reasons I have set Gain to 1.
if (mode == ImpulseResponse.Finite)
{
double[] c = FirCoefficients.LowPass(sampleRate, cutoffRate, order >> 1);
double[] c = FirCoefficients.LowPass(sampleRate, cutoffRate, 1, order >> 1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would FirCoefficients.LowPass(sampleRate, cutoffRate, halforder: order >> 1) be preferred here since the issue here is not specifying what keyword order >> 1 goes to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants