public static  void lsp_prev_compose(
	  float lsp_ele[],             /* (i) Q13 : LSP vectors                 */
	  float lsp[],                 /* (o) Q13 : quantized LSP parameters    */
	  float fg[][],               /* (i) Q15 : MA prediction coef.         */
	  float freq_prev[][],        /* (i) Q13 : previous LSP vector         */
	  float fg_sum[]               /* (i) Q15 : present MA prediction coef. */
	)
	{
	   int j, k;

	   for(j=0; j<LD8KConstants.M; j++) {
	      lsp[j] = lsp_ele[j] * fg_sum[j];
	      for(k=0; k<LD8KConstants.MA_NP; k++) lsp[j] += freq_prev[k][j]*fg[k][j];
	   }
	   return;
	}
public static void lsp_prev_compose ( float lsp_ele [ ] , float lsp [ ] , float fg [ ] [ ] , float freq_prev [ ] [ ] , float fg_sum [ ] ) { int j , k ; for ( j = 0 ; j < LD8KConstants . M ; j ++ ) { lsp [ j ] = lsp_ele [ j ] * fg_sum [ j ] ; for ( k = 0 ; k < LD8KConstants . MA_NP ; k ++ ) lsp [ j ] += freq_prev [ k ] [ j ] * fg [ k ] [ j ] ; } return ; }
/*
compose LSP parameter from elementary LSP with previous LSP.