org.jscience.mathematics.analysis.fitting
Class AbstractCurveFitter.FitMeasurement

java.lang.Object
  extended by org.jscience.mathematics.analysis.estimation.WeightedMeasurement
      extended by 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.
 
Constructor Summary
AbstractCurveFitter.FitMeasurement(double weight, double x, double y)
          Simple constructor.
 
Method Summary
 double getPartial(EstimatedParameter p)
          Partial derivative with respect to one function coefficient.
 double getTheoreticalValue()
          Get the value of the fitted function at x.
 
Methods inherited from class org.jscience.mathematics.analysis.estimation.WeightedMeasurement
getMeasuredValue, getResidual, getWeight, isIgnored, setIgnored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public final double x
Abscissa of the measurement.

Constructor Detail

AbstractCurveFitter.FitMeasurement

public AbstractCurveFitter.FitMeasurement(double weight,
                                          double x,
                                          double y)
Simple constructor.

Parameters:
weight - weight of the measurement in the fitting process
x - abscissa of the measurement
y - ordinate of the measurement
Method Detail

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