java.lang.Object
es.upm.fi.cig.multictbnc.classification.Prediction
Contains a multidimensional prediction and its probability.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the prediction.doubleReturns the prediction time.Returns the probabilities of every possible class configuration.doubleReturns the probability of the prediction.voidsetPredictedClasses(State predictedClasses) Sets the predicted classes.voidsetPredictionTime(double predictionTime) Sets the prediction time.voidsetProbabilities(Map<State, Double> probabilities) Sets the probabilities of every possible class configuration.voidsetProbability(State classes, double probability) Sets the probability of a class configuration.voidsetProbabilityPrediction(double probabilityPrediction) Sets the probability of the prediction.
-
Constructor Details
-
Prediction
public Prediction()
-
-
Method Details
-
getPredictedClasses
Returns the prediction.- Returns:
- prediction a
Stateobject with the prediction
-
getPredictionTime
public double getPredictionTime()Returns the prediction time.- Returns:
- prediction time
-
getProbabilities
Returns the probabilities of every possible class configuration.- Returns:
- probabilities of each class configuration
-
getProbabilityPrediction
public double getProbabilityPrediction()Returns the probability of the prediction.- Returns:
- probability probability of the prediction
-
setPredictedClasses
Sets the predicted classes.- Parameters:
predictedClasses-Stateobject with the predicted classes
-
setPredictionTime
public void setPredictionTime(double predictionTime) Sets the prediction time.- Parameters:
predictionTime- prediction time.
-
setProbabilities
Sets the probabilities of every possible class configuration.- Parameters:
probabilities- probabilities of each class configuration
-
setProbability
Sets the probability of a class configuration.- Parameters:
classes- aStateobject with the class configurationprobability- probability for the class configuration
-
setProbabilityPrediction
public void setProbabilityPrediction(double probabilityPrediction) Sets the probability of the prediction.- Parameters:
probabilityPrediction- probability of the prediction
-