public class UnivariateLinearRegression extends AbstractCloneableSerializable implements SupervisedBatchLearner<java.lang.Double,java.lang.Double,LinearFunction>
| Constructor and Description |
|---|
UnivariateLinearRegression()
Creates a new
UnivariateLinearRegression. |
| Modifier and Type | Method and Description |
|---|---|
LinearFunction |
learn(java.util.Collection<? extends InputOutputPair<? extends java.lang.Double,java.lang.Double>> data)
The
learn method creates an object of ResultType using
data of type DataType, using some form of "learning" algorithm. |
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic UnivariateLinearRegression()
UnivariateLinearRegression.public LinearFunction learn(java.util.Collection<? extends InputOutputPair<? extends java.lang.Double,java.lang.Double>> data)
BatchLearnerlearn method creates an object of ResultType using
data of type DataType, using some form of "learning" algorithm.learn in interface BatchLearner<java.util.Collection<? extends InputOutputPair<? extends java.lang.Double,java.lang.Double>>,LinearFunction>data - The data that the learning algorithm will use to create an
object of ResultType.