marf.math
Class Algorithms.LPC

java.lang.Object
  extended by marf.math.Algorithms.LPC
Enclosing class:
Algorithms

public static final class Algorithms.LPC
extends java.lang.Object

A collection of LPC-related algorithms.

Author:
Ian Clement

Constructor Summary
Algorithms.LPC()
           
 
Method Summary
static double autocorrelation(double[] padInput, int piX)
          Implements the least-square autocorrelation method.
static void doLPC(double[] padInput, double[] padOutput, double[] padError, int piPoles)
          Does the LPC algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Algorithms.LPC

public Algorithms.LPC()
Method Detail

doLPC

public static final void doLPC(double[] padInput,
                               double[] padOutput,
                               double[] padError,
                               int piPoles)
                        throws MathException
Does the LPC algorithm. NOTE: input is assumed to be windowed, ie: input.length = N.

Parameters:
padInput - windowed part of incoming sample
padOutput - resulting LPC coefficiencies
padError - output LPC error
piPoles - number of poles
Throws:
MathException

autocorrelation

public static final double autocorrelation(double[] padInput,
                                           int piX)
Implements the least-square autocorrelation method.

Parameters:
padInput - windowed input signal
piX - coefficient number
Returns:
double - correlation number


SourceForge Logo