org.apache.commons.math.estimation
@Deprecated public class SimpleEstimationProblem extends Object implements EstimationProblem
EstimationProblem
interface for boilerplate data handling.
This class only handles parameters and measurements
storage and unbound parameters filtering. It does not compute
anything by itself. It should either be used with measurements
implementation that are smart enough to know about the
various parameters in order to compute the partial derivatives
appropriately. Since the problem-specific logic is mainly related to
the various measurements models, the simplest way to use this class
is by extending it and using one internal class extending
WeightedMeasurement
for each measurement
type. The instances of the internal classes would have access to the
various parameters and their current estimate.
Modifier and Type | Field and Description |
---|---|
private List<WeightedMeasurement> |
measurements
Deprecated.
Measurements.
|
private List<EstimatedParameter> |
parameters
Deprecated.
Estimated parameters.
|
Constructor and Description |
---|
SimpleEstimationProblem()
Deprecated.
Build an empty instance without parameters nor measurements.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMeasurement(WeightedMeasurement m)
Deprecated.
Add a new measurement to the set.
|
protected void |
addParameter(EstimatedParameter p)
Deprecated.
Add a parameter to the problem.
|
EstimatedParameter[] |
getAllParameters()
Deprecated.
Get all the parameters of the problem.
|
WeightedMeasurement[] |
getMeasurements()
Deprecated.
Get the measurements of an estimation problem.
|
EstimatedParameter[] |
getUnboundParameters()
Deprecated.
Get the unbound parameters of the problem.
|
private final List<EstimatedParameter> parameters
private final List<WeightedMeasurement> measurements
public SimpleEstimationProblem()
public EstimatedParameter[] getAllParameters()
getAllParameters
in interface EstimationProblem
public EstimatedParameter[] getUnboundParameters()
getUnboundParameters
in interface EstimationProblem
public WeightedMeasurement[] getMeasurements()
getMeasurements
in interface EstimationProblem
protected void addParameter(EstimatedParameter p)
p
- parameter to addprotected void addMeasurement(WeightedMeasurement m)
m
- measurement to addCopyright (c) 2003-2013 Apache Software Foundation