public static double[] lsfInHz2lpc(double[] lsf,int samplingRate){
  double[] normalised_lsf=new double[lsf.length];
  for (int i=0; i < lsf.length; i++) {
    normalised_lsf[i]=lsf[i] / samplingRate;
    assert 0 <= normalised_lsf[i];
    assert normalised_lsf[i] <= 0.5;
  }
  return lsf2lpc(normalised_lsf);
}

public static double [ ] lsfInHz2lpc ( double [ ] lsf , int samplingRate ) { double [ ] normalised_lsf = new double [ lsf . length ] ; for ( int i = 0 ; i < lsf . length ; i ++ ) { normalised_lsf [ i ] = lsf [ i ] / samplingRate ; assert 0 <= normalised_lsf [ i ] ; assert normalised_lsf [ i ] <= 0.5 ; } return lsf2lpc ( normalised_lsf ) ; }
convert lsf frequencies into lpc coefficients . the analysis filter may be reconstructed : a ( z ) = 1 / 2 [ p ( z ) + q ( z ) ]
