marf.math
Class Algorithms.LPC

java.lang.Object
  |
  +--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[] input, double[] output, double[] error, int p)
          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[] input,
                               double[] output,
                               double[] error,
                               int p)
                        throws MathException
Does the LPC algorithm. NOTE: input is assumed to be windowed, ie: input.length = N.

Parameters:
input - windowed part of incoming sample
output - resulting LPC coefficiencies
error - output LPC error
p - 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