private double[] resample(){
  int length=mSpecification.getFilterLength();
  if (length % 2 == 0) {
    length--;
  }
  double half=(double)length / 2.0;
  double[] resampled=new double[(int)Math.ceil(half)];
  for (int x=0; x < resampled.length; x++) {
    resampled[x]=getFrequencyResponse(Math.cos(Math.PI * (double)x / half));
  }
  return resampled;
}

private double [ ] resample ( ) { int length = mSpecification . getFilterLength ( ) ; if ( length % 2 == 0 ) { length -- ; } double half = ( double ) length / 2.0 ; double [ ] resampled = new double [ ( int ) Math . ceil ( half ) ] ; for ( int x = 0 ; x < resampled . length ; x ++ ) { resampled [ x ] = getFrequencyResponse ( Math . cos ( Math . PI * ( double ) x / half ) ) ; } return resampled ; }
resamples the designed filter at half of the filter length at evenly spaced intervals of the frequency spectrum from 0 to pi radians .
