public interface Regression<T>
extends java.util.function.ToDoubleFunction<T>, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
default double |
applyAsDouble(T x) |
double |
predict(T x)
Predicts the dependent variable of an instance.
|
default double[] |
predict(T[] x)
Predicts the dependent variables of an array of instances.
|
double predict(T x)
x
- an instance.default double[] predict(T[] x)
x
- the instances.