public interface ICurveFitter
Modifier and Type | Method and Description |
---|---|
void |
estimate()
Initializes the curve fitter with a starting curve estimate.
|
double |
getChiSquaredError()
Returns the Chi Squared Error of the current curve estimate.
|
double |
getChiSquaredError(double[][] estCurve) |
int |
getComponentCount()
Returns the number of exponentials to be fitted.
|
double[][] |
getCurve()
Returns the current curve estimate.
|
int[] |
getData()
Gets the data to be used to generate curve estimates.
|
double[] |
getEstimates(double[][] estimate) |
int |
getFirst() |
boolean[][] |
getFixed()
For each parameter, gets whether it should be fixed at the current value,
or allowed to iterate toward an optimal value.
|
int |
getIterations()
Returns the number of iterations so far.
|
int |
getLast() |
double |
getReducedChiSquaredError()
Returns the Reduced Chi Squared Error of the current curve estimate
This is based on the number of datapoints in data and the number
of exponentials in setComponentCount.
|
double |
getReducedChiSquaredError(double[][] estCurve) |
void |
iterate()
iterate() runs through one iteration of whatever curve fitting
technique this curve fitter uses.
|
void |
setComponentCount(int numExp)
Sets how many exponentials are expected to be fitted.
|
void |
setCurve(double[][] curve)
Sets the current curve estimate, useful if information about the
curve is already known.
|
void |
setData(int[] data)
Sets the data to be used to generate curve estimates.
|
void |
setData(int[] data,
int first,
int last) |
void |
setFixed(boolean[][] fixed)
For each parameter, sets whether it should be fixed at the current value,
or allowed to iterate toward an optimal value.
|
void iterate()
int getIterations()
double getChiSquaredError()
double getChiSquaredError(double[][] estCurve)
double getReducedChiSquaredError()
double getReducedChiSquaredError(double[][] estCurve)
double[] getEstimates(double[][] estimate)
void setData(int[] data)
void setData(int[] data, int first, int last)
int[] getData()
int getFirst()
int getLast()
void setComponentCount(int numExp)
int getComponentCount()
void setFixed(boolean[][] fixed)
boolean[][] getFixed()
void estimate()
double[][] getCurve()
void setCurve(double[][] curve)
Copyright © 2015–2022 SciJava. All rights reserved.