T - The type of datapublic class NullModel<T> extends Object implements EstimatableModel<T,T>
NullModel models a one-to-one mapping of data. For convenience the
EstimatableModel interface is implemented, although estimating does
absolutely nothing!| Constructor and Description |
|---|
NullModel() |
| Modifier and Type | Method and Description |
|---|---|
NullModel<T> |
clone()
Clone the model
|
boolean |
estimate(List<? extends IndependentPair<T,T>> data)
Estimates the model from the observations in the list of data.
|
int |
numItemsToEstimate() |
T |
predict(T data)
Uses the model to predict dependent data from an independent value.
|
public NullModel()
public T predict(T data)
Modelpublic NullModel<T> clone()
EstimatableModelpublic boolean estimate(List<? extends IndependentPair<T,T>> data)
EstimatableModelEstimatableModel.numItemsToEstimate() pairs of dependent
and independent data. It may contain more, in which case the estimate
method may choose to make use of this data for validation, or obtaining a
better model by a least squares method for example.estimate in interface EstimatableModel<T,T>data - Data with which to estimate the modelEstimatableModel.numItemsToEstimate()public int numItemsToEstimate()
numItemsToEstimate in interface EstimatableModel<T,T>