org.opentox.prediction
Class MlrPredictor

java.lang.Object
  extended by org.opentox.error.ErrorSource
      extended by org.opentox.prediction.MlrPredictor
All Implemented Interfaces:
IPredictor, IProne2Error

public class MlrPredictor
extends ErrorSource
implements IPredictor

Applies a dataset on an MLR model to predict a feature.

Version:
1.3.3 (Last update: Dec 20, 2009)
Author:
OpenTox - http://www.opentox.org/, Sopasakis Pantelis, Sarimveis Harry

Field Summary
 
Fields inherited from class org.opentox.error.ErrorSource
errorRep
 
Constructor Summary
MlrPredictor()
          Constructor.
 
Method Summary
 org.restlet.representation.Representation predict(org.restlet.data.Form form, java.lang.String model_id)
          An implementation of the corresponding method in IPredictor for MLR models.
 
Methods inherited from class org.opentox.error.ErrorSource
getErrorRep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MlrPredictor

public MlrPredictor()
Constructor.

Method Detail

predict

public org.restlet.representation.Representation predict(org.restlet.data.Form form,
                                                         java.lang.String model_id)
An implementation of the corresponding method in IPredictor for MLR models.

Specified by:
predict in interface IPredictor
Parameters:
form - The posted parameters as an instance of Form
model_id - The id of the model to be used for the prediction.
Returns:
Representation of the prediction result which is the URI of the generated dataset that contains the predicted variables or some error representation instead.