public class WeightedObservedPoints extends Object implements Serializable
curve fitting
algorithms.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.
|
List<WeightedObservedPoint> |
toList()
Gets a snapshot of the observed points.
|
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 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 © 2003–2016 The Apache Software Foundation. All rights reserved.