Class WeightedObservedPoint
java.lang.Object
org.apache.commons.math3.optimization.fitting.WeightedObservedPoint
- All Implemented Interfaces:
Serializable
Deprecated.
As of 3.1 (to be removed in 4.0).
This class is a simple container for weighted observed point in
curve fitting
.
Instances of this class are guaranteed to be immutable.
- Since:
- 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Deprecated.Serializable version id.private final double
Deprecated.Weight of the measurement in the fitting process.private final double
Deprecated.Abscissa of the point.private final double
Deprecated.Observed value of the function at x. -
Constructor Summary
ConstructorsConstructorDescriptionWeightedObservedPoint
(double weight, double x, double y) Deprecated.Simple constructor. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Serializable version id.- See Also:
-
weight
private final double weightDeprecated.Weight of the measurement in the fitting process. -
x
private final double xDeprecated.Abscissa of the point. -
y
private final double yDeprecated.Observed value of the function at x.
-
-
Constructor Details
-
WeightedObservedPoint
public WeightedObservedPoint(double weight, double x, double y) Deprecated.Simple constructor.- Parameters:
weight
- weight of the measurement in the fitting processx
- abscissa of the measurementy
- ordinate of the measurement
-
-
Method Details
-
getWeight
public double getWeight()Deprecated.Get the weight of the measurement in the fitting process.- Returns:
- weight of the measurement in the fitting process
-
getX
public double getX()Deprecated.Get the abscissa of the point.- Returns:
- abscissa of the point
-
getY
public double getY()Deprecated.Get the observed value of the function at x.- Returns:
- observed value of the function at x
-