public abstract class AbstractCurveFitter extends Object
y = f(pi;x)
, where x
is
the independent variable and the pi
are the
parameters.
N
observed points (xk, yk)
,
0 <= k < N
.
∑yk - f(xk)2,
which is actually a least-squares problem.
This class contains boilerplate code for calling the
fit(Collection)
method for obtaining the parameters.
The problem setup, such as the choice of optimization algorithm
for fitting a specific function is delegated to subclasses.Constructor and Description |
---|
AbstractCurveFitter() |
Modifier and Type | Method and Description |
---|---|
double[] |
fit(Collection<WeightedObservedPoint> points)
Fits a curve.
|
public double[] fit(Collection<WeightedObservedPoint> points)
points
- Observations.Jas4pp 1.5 © Java Analysis Studio for Particle Physics