Top Description Fields Constructors Methods
org.apache.commons.math3.fitting

public Class WeightedObservedPoint

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.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

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Serializable version id.

private final double
weight

Weight of the measurement in the fitting process.

private final double
x

Abscissa of the point.

private final double
y

Observed value of the function at x.

Constructor Summary

AccessConstructor and Description
public
WeightedObservedPoint(final double
Weight of the measurement in the fitting process.
weight
,
final double
Abscissa of the measurement.
x
,
final double
Ordinate of the measurement.
y
)

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

the weight of the measurement in the fitting process.
getWeight
()

Gets the weight of the measurement in the fitting process.

public double

Returns:

the abscissa of the point.
getX
()

Gets the abscissa of the point.

public double

Returns:

the observed value of the function at x.
getY
()

Gets the observed value of the function at x.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Serializable version id.

weightback to summary
private final double weight

Weight of the measurement in the fitting process.

xback to summary
private final double x

Abscissa of the point.

yback to summary
private final double y

Observed value of the function at x.

Constructor Detail

WeightedObservedPointback to summary
public WeightedObservedPoint(final double weight, final double x, final double y)

Simple constructor.

Parameters
weight:double

Weight of the measurement in the fitting process.

x:double

Abscissa of the measurement.

y:double

Ordinate of the measurement.

Method Detail

getWeightback to summary
public double getWeight()

Gets the weight of the measurement in the fitting process.

Returns:double

the weight of the measurement in the fitting process.

getXback to summary
public double getX()

Gets the abscissa of the point.

Returns:double

the abscissa of the point.

getYback to summary
public double getY()

Gets the observed value of the function at x.

Returns:double

the observed value of the function at x.