Package org.apache.commons.math3.fitting
Class WeightedObservedPoint
java.lang.Object
org.apache.commons.math3.fitting.WeightedObservedPoint
- All Implemented Interfaces:
Serializable
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
Serializable version id.private final double
Weight of the measurement in the fitting process.private final double
Abscissa of the point.private final double
Observed value of the function at x. -
Constructor Summary
ConstructorsConstructorDescriptionWeightedObservedPoint
(double weight, double x, double y) Simple constructor. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerializable version id.- See Also:
-
weight
private final double weightWeight of the measurement in the fitting process. -
x
private final double xAbscissa of the point. -
y
private final double yObserved value of the function at x.
-
-
Constructor Details
-
WeightedObservedPoint
public WeightedObservedPoint(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 Details
-
getWeight
public double getWeight()Gets the weight of the measurement in the fitting process.- Returns:
- the weight of the measurement in the fitting process.
-
getX
public double getX()Gets the abscissa of the point.- Returns:
- the abscissa of the point.
-
getY
public double getY()Gets the observed value of the function at x.- Returns:
- the observed value of the function at x.
-