vec_math
Class LinearPrediction.Debug

java.lang.Object
  extended by vec_math.LinearPrediction
      extended by vec_math.LinearPrediction.Debug
Enclosing class:
LinearPrediction

public static final class LinearPrediction.Debug
extends LinearPrediction

A debugging class. Used to predict the value of sin(x) for FUTURE data points at a stepsize STEP, using PAST number of data points from the past. The number of LP coefficients used is NUMBER. An offset to the sin function can be specified, OFFSET.


Nested Class Summary
 
Nested classes/interfaces inherited from class vec_math.LinearPrediction
LinearPrediction.Debug
 
Field Summary
private static int FUTURE
          The number of data points to predict.
private static int NUMBER
          The number of LP coefficients to use.
private static double OFFSET
          The angular offset in the sine function.
private static int PAST
          The number of data points to derive the LP coefficients from.
private static double STEP
          The step size in generating the input data.
 
Constructor Summary
LinearPrediction.Debug()
           
 
Method Summary
static void main(String[] arg)
          The entry method for the debug class.
 
Methods inherited from class vec_math.LinearPrediction
calculateCoefficients, getCoefficients, getData, getDiscrepancy, predict, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FUTURE

private static final int FUTURE
The number of data points to predict.

See Also:
Constant Field Values

PAST

private static final int PAST
The number of data points to derive the LP coefficients from.

See Also:
Constant Field Values

NUMBER

private static final int NUMBER
The number of LP coefficients to use.

See Also:
Constant Field Values

STEP

private static final double STEP
The step size in generating the input data.

See Also:
Constant Field Values

OFFSET

private static final double OFFSET
The angular offset in the sine function.

See Also:
Constant Field Values
Constructor Detail

LinearPrediction.Debug

public LinearPrediction.Debug()
Method Detail

main

public static void main(String[] arg)
The entry method for the debug class.