public class FitTanh extends DataProcessor
Modifier and Type | Field | Description |
---|---|---|
protected DataFunction |
fitData |
|
protected DataFunction.DataInfoFunction |
fitDataInfo |
|
protected int |
maxIterations |
|
protected double[] |
param |
|
protected double |
tolerance |
dataInfo, dataSink, tag
Constructor | Description |
---|---|
FitTanh() |
Modifier and Type | Method | Description |
---|---|---|
double[] |
doFit(double[] x,
double[] y) |
|
double[] |
getLastBestParam() |
|
protected double |
getSqErr(double[] x,
double[] y) |
|
double |
getTolerance() |
|
static void |
main(java.lang.String[] args) |
|
protected IData |
processData(IData inputData) |
Processes the input Data and returns Data for pushing to the next
DataSink.
|
protected IDataInfo |
processDataInfo(IDataInfo inputDataInfo) |
Informs this DataProcessor of the DataInfo for the Data it will be
processing.
|
void |
setMaxIterations(int newMaxIterations) |
|
void |
setTolerance(double newTolerance) |
getDataInfo, getDataSink, getTag, putData, putDataInfo, setDataSink
protected double tolerance
protected int maxIterations
protected DataFunction fitData
protected DataFunction.DataInfoFunction fitDataInfo
protected double[] param
public static void main(java.lang.String[] args)
public double getTolerance()
public void setTolerance(double newTolerance)
public void setMaxIterations(int newMaxIterations)
public double[] doFit(double[] x, double[] y)
protected double getSqErr(double[] x, double[] y)
public double[] getLastBestParam()
protected IData processData(IData inputData)
DataProcessor
processData
in class DataProcessor
inputData
- the Data for processingprotected IDataInfo processDataInfo(IDataInfo inputDataInfo)
DataProcessor
processDataInfo
in class DataProcessor
inputDataInfo
- the DataInfo of the Data that will be input to this
DataProcessor