public class MultipleLinearRegressionPredictor extends Object implements LinearRegressionPredictor
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static MultipleLinearRegressionPredictor |
from(MultipleLinearRegression model)
Create a new predictor from the given multiple linear regression model.
|
int |
hashCode() |
List<LinearRegressionPrediction> |
predict(Matrix observations,
double alpha)
Predict a series of responses, one for each row in the observation matrix.
|
LinearRegressionPrediction |
predict(Vector observation,
double alpha)
Predict a response using the given observation and significance level.
|
List<LinearRegressionPrediction> |
predictDesignMatrix(Matrix designMatrix,
double alpha)
Predict a series of responses, one for each row in the design matrix.
|
getClass, notify, notifyAll, toString, wait, wait, waitpredict, predictpublic static MultipleLinearRegressionPredictor from(MultipleLinearRegression model)
model - the regression model to base predictions off of.public LinearRegressionPrediction predict(Vector observation, double alpha)
LinearRegressionPredictorpredict in interface LinearRegressionPredictorobservation - the new observation.alpha - the significance level.public List<LinearRegressionPrediction> predict(Matrix observations, double alpha)
LinearRegressionPredictorpredict in interface LinearRegressionPredictorobservations - the new observations.alpha - the significance level.public List<LinearRegressionPrediction> predictDesignMatrix(Matrix designMatrix, double alpha)
designMatrix - the design matrix for the prediction.alpha - the significance level.