org.jscience.mathematics.analysis.fitting
Class AbstractCurveFitter.FitMeasurement
java.lang.Object
org.jscience.mathematics.analysis.estimation.WeightedMeasurement
org.jscience.mathematics.analysis.fitting.AbstractCurveFitter.FitMeasurement
- Enclosing class:
- AbstractCurveFitter
public class AbstractCurveFitter.FitMeasurement
- extends WeightedMeasurement
This class represents the fit measurements.
One measurement is a weighted pair (x, y), where y = f
(x) is the value of the function at x abscissa. This class
is an inner class because the methods related to the computation
of f values and derivative are proveded by the fitter
implementations.
|
Field Summary |
double |
x
Abscissa of the measurement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public final double x
- Abscissa of the measurement.
AbstractCurveFitter.FitMeasurement
public AbstractCurveFitter.FitMeasurement(double weight,
double x,
double y)
- Simple constructor.
- Parameters:
weight - weight of the measurement in the fitting processx - abscissa of the measurementy - ordinate of the measurement
getTheoreticalValue
public double getTheoreticalValue()
- Get the value of the fitted function at x.
- Specified by:
getTheoreticalValue in class WeightedMeasurement
- Returns:
- theoretical value at the measurement abscissa
getPartial
public double getPartial(EstimatedParameter p)
- Partial derivative with respect to one function coefficient.
- Specified by:
getPartial in class WeightedMeasurement
- Parameters:
p - parameter with respect to which the derivative is requested
- Returns:
- partial derivative