Package dev.nm.analysis.curvefit
Interface LeastSquares.Weighting
-
- Enclosing class:
- LeastSquares
public static interface LeastSquares.WeightingThis interface defines a weighting for observations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetWeightForObservation(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 observationy- the dependent variable in the observation- Returns:
- the weight assigned to this particular observation
-
-