SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.curvefit

Interface LeastSquares.Weighting

• Enclosing class:
LeastSquares

public static interface LeastSquares.Weighting
This interface defines a weighting for observations.
• Method Summary

All Methods
Modifier and Type Method and Description
double getWeightForObservation(double x, double y)
Specify the weight given to a particular observation.
• Method Detail

• getWeightForObservation

double getWeightForObservation(double x,
double y)
Specify the weight given to a particular observation. Most commonly uniform weighting is used.
Parameters:
x - the independent variable in the observation
y - the dependent variable in the observation
Returns:
the weight assigned to this particular observation