public class ALEProcessor
extends java.lang.Object
This class is a computer model of : B. Widrow et al : Adaptive Noise Cancelling : Principles and Applications Proceedings of the IEEE, Vol 63, No. 12, December 1975.
Constructor and Description |
---|
ALEProcessor(int numerOfTaps,
int tapSpacing,
java.lang.String stepSize,
java.lang.String type,
boolean useBIAS)
Creates an ALE processor with a given number of taps (i.e.
|
Modifier and Type | Method and Description |
---|---|
void |
allocate(double[] data)
Allocates the arrays used if they are different sizes from currently set.
|
void |
calcError() |
double |
calcMax(double[] data) |
void |
calcNewWeights() |
void |
calcOptStepSize() |
void |
calcStepSize() |
void |
calcYn() |
void |
normalise(double[] arr) |
void |
process(double[] data) |
void |
reset() |
void |
resetWeights() |
void |
setNumberOfTaps(int taps)
Sets the number of taps (i.e.
|
void |
setObject(Unit unit) |
void |
setOptimumStepSize(double[] data) |
void |
setStepSize(double stepSize)
Sets the step size to given value
|
void |
setStepSize(java.lang.String stepSize)
Sets the step size to the double value contained within the string or to the reciprocal of the length of the
input data if this string is set to auto on the next presentation of data.
|
void |
setTapSpacing(int spacing)
Sets the tap spacing (i.e.
|
void |
setWeightUpdateType(java.lang.String type) |
double |
squareLength(double[] arr) |
double |
vectlength(double[] arr) |
public ALEProcessor(int numerOfTaps, int tapSpacing, java.lang.String stepSize, java.lang.String type, boolean useBIAS)
public void setObject(Unit unit)
public void allocate(double[] data)
public void resetWeights()
public void process(double[] data)
public void calcYn()
public void calcError()
public void calcNewWeights()
public void calcStepSize()
public void calcOptStepSize()
public double calcMax(double[] data)
public void setOptimumStepSize(double[] data)
public double vectlength(double[] arr)
public double squareLength(double[] arr)
public void normalise(double[] arr)
public void reset()
public void setTapSpacing(int spacing)
public void setNumberOfTaps(int taps)
public void setStepSize(double stepSize)
public void setStepSize(java.lang.String stepSize)
public void setWeightUpdateType(java.lang.String type)