public class WeightedObservedPoints
extends java.lang.Object
implements java.io.Serializable
curve fitting
algorithms.Modifier and Type | Field and Description |
---|---|
private java.util.List<WeightedObservedPoint> |
observations
Observed points.
|
private static long |
serialVersionUID
Serializable version id.
|
Constructor and Description |
---|
WeightedObservedPoints() |
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double y)
Adds a point to the sample.
|
void |
add(double weight,
double x,
double y)
Adds a point to the sample.
|
void |
add(WeightedObservedPoint observed)
Adds a point to the sample.
|
void |
clear()
Removes all observations from this container.
|
java.util.List<WeightedObservedPoint> |
toList()
Gets a snapshot of the observed points.
|
private static final long serialVersionUID
private final java.util.List<WeightedObservedPoint> observations
public void add(double x, double y)
add(1.0, x, y)
.x
- Abscissa of the point.y
- Observed value at x
. After fitting we should
have f(x)
as close as possible to this value.add(double, double, double)
,
add(WeightedObservedPoint)
,
toList()
public void add(double weight, double x, double y)
weight
- Weight of the observed point.x
- Abscissa of the point.y
- Observed value at x
. After fitting we should
have f(x)
as close as possible to this value.add(double, double)
,
add(WeightedObservedPoint)
,
toList()
public void add(WeightedObservedPoint observed)
observed
- Observed point to add.add(double, double)
,
add(double, double, double)
,
toList()
public java.util.List<WeightedObservedPoint> toList()
add
or clear
methods) will not affect the
returned list.add(double, double)
,
add(double, double, double)
,
add(WeightedObservedPoint)
public void clear()
Copyright (c) 2003-2014 Apache Software Foundation