public static class WeightedCostApproximator.Factory extends java.lang.Object implements ApproximatorFactory
Constructor and Description |
---|
WeightedCostApproximator.Factory(float noise) |
WeightedCostApproximator.Factory(float noise,
boolean quiet) |
WeightedCostApproximator.Factory(float noise,
int NSV) |
WeightedCostApproximator.Factory(float noise,
int NSV,
boolean quiet) |
Modifier and Type | Method and Description |
---|---|
ApproximatorFactory |
clone() |
LinearApproximator |
getApproximator(float[][][] evaluationSignals,
float[][][] values)
Similar to getApproximator(float[][], float[][]) but uses evaluation signals and outputs computed over time.
|
LinearApproximator |
getApproximator(float[][] evalPoints,
float[][] values) |
Function |
getCostFunction(int dimension)
Note: override to use non-uniform error weighting.
|
float |
getNoise() |
int |
getNSV() |
boolean |
getQuiet() |
void |
setNoise(float noise) |
void |
setNSV(int nSV) |
void |
setQuiet(boolean quiet) |
public WeightedCostApproximator.Factory(float noise)
noise
- Random noise to add to component functions (proportion of largest value over all functions)public WeightedCostApproximator.Factory(float noise, boolean quiet)
noise
- Random noise to add to component functions (proportion of largest value over all functions)quiet
- Turn off logging?public WeightedCostApproximator.Factory(float noise, int NSV)
noise
- Random noise to add to component functions (proportion of largest value over all functions)NSV
- Number of singular values to keeppublic WeightedCostApproximator.Factory(float noise, int NSV, boolean quiet)
noise
- Random noise to add to component functions (proportion of largest value over all functions)NSV
- Number of singular values to keepquiet
- Turn off logging?public float getNoise()
public void setNoise(float noise)
noise
- Random noise to add to component functions (proportion of largest value over all functions)public int getNSV()
public void setNSV(int nSV)
nSV
- Maximum number of singular values to use in pseudoinverse of correlation matrix (zero or less means
use as many as possible to a threshold magnitude determined by noise).public boolean getQuiet()
public void setQuiet(boolean quiet)
quiet
- Controls whether or not information will be printed out to console during make process.public LinearApproximator getApproximator(float[][] evalPoints, float[][] values)
getApproximator
in interface ApproximatorFactory
evalPoints
- Points at which component functions are evaluated. These should
usually be uniformly distributed, because the sum of error at these points is
treated as an integral over the domain of interest.values
- The values of component functions at the evalPoints. The first dimension
makes up the list of functions, and the second the values of these functions at each
evaluation point.ApproximatorFactory.getApproximator(float[][], float[][])
public LinearApproximator getApproximator(float[][][] evaluationSignals, float[][][] values)
evaluationSignals
- Signals over which component functions are evaluated. First dimension is the signal, second
is the dimension, and third is time.values
- values of component functions over the evaluation signals. First dimension is the component, second
is the signal, and third is time.public Function getCostFunction(int dimension)
dimension
- Dimension of the function to be approximatedpublic ApproximatorFactory clone() throws java.lang.CloneNotSupportedException
clone
in interface ApproximatorFactory
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if clone can't be made