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

public Class WeightedObservedPoint

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

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:

weight of the measurement in the fitting process
getWeight
()

Get the weight of the measurement in the fitting process.

public double

Returns:

abscissa of the point
getX
()

Get the abscissa of the point.

public double

Returns:

observed value of the function at x
getY
()

Get 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()

Get the weight of the measurement in the fitting process.

Returns:double

weight of the measurement in the fitting process

getXback to summary
public double getX()

Get the abscissa of the point.

Returns:double

abscissa of the point

getYback to summary
public double getY()

Get the observed value of the function at x.

Returns:double

observed value of the function at x