@Override public double apply(double sample){
  if (cutoffFreqFactor <= 0.0) {
    return sample;
  }
  double element_0=sample - elements[0] * a1 - elements[1] * a2;
  if (Double.isNaN(element_0)) {
    element_0=sample;
  }
  double output=element_0 * b0 + elements[0] * b1 + elements[1] * b2;
  elements[1]=elements[0];
  elements[0]=element_0;
  return output;
}

@ Override public double apply ( double sample ) { if ( cutoffFreqFactor <= 0.0 ) { return sample ; } double element_0 = sample - elements [ 0 ] * a1 - elements [ 1 ] * a2 ; if ( Double . isNaN ( element_0 ) ) { element_0 = sample ; } double output = element_0 * b0 + elements [ 0 ] * b1 + elements [ 1 ] * b2 ; elements [ 1 ] = elements [ 0 ] ; elements [ 0 ] = element_0 ; return output ; }
add a new raw value to the filter
