highPass method

void highPass(
  1. int order,
  2. double sampleRate,
  3. double cutoffFrequency,
  4. double rippleDb, [
  5. int directFormType = DirectFormAbstract.direct_form_II,
])

ChebyshevI Lowpass filter and custom filter topology

Param:

  • order - The order of the filter
  • sampleRate - The sampling rate of the system
  • cutoffFrequency - The cutoff frequency
  • rippleDb - pass-band ripple in decibel sensible value: 1dB
  • directFormType - The filter topology. Default direct_form_II

Implementation

/// Param:
/// * order - The order of the filter
/// * sampleRate - The sampling rate of the system
/// * cutoffFrequency - The cutoff frequency
/// * rippleDb - pass-band ripple in decibel sensible value: 1dB
/// * directFormType - The filter topology. Default direct_form_II
  void highPass(
 int order,
 double sampleRate,
 double cutoffFrequency,
 double rippleDb,
 [int directFormType = DirectFormAbstract.direct_form_II]
 ) {
 _AnalogLowPass analogProto =  _AnalogLowPass(order);
 analogProto.design(rippleDb);
 LayoutBase digitalProto =  LayoutBase(order);
 HighPassTransform(cutoffFrequency / sampleRate, digitalProto, analogProto);
 setLayout(digitalProto, directFormType);
  }