java.lang.Object
es.upm.fi.cig.multictbnc.classification.Prediction
Contains a multidimensional prediction and its probability.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the prediction.double
Returns the prediction time.Returns the probabilities of every possible class configuration.double
Returns the probability of the prediction.void
setPredictedClasses
(State predictedClasses) Sets the predicted classes.void
setPredictionTime
(double predictionTime) Sets the prediction time.void
setProbabilities
(Map<State, Double> probabilities) Sets the probabilities of every possible class configuration.void
setProbability
(State classes, double probability) Sets the probability of a class configuration.void
setProbabilityPrediction
(double probabilityPrediction) Sets the probability of the prediction.
-
Constructor Details
-
Prediction
public Prediction()
-
-
Method Details
-
getPredictedClasses
Returns the prediction.- Returns:
- prediction a
State
object 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
-State
object 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
- aState
object 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
-