|
iCub-main
|
A class that represents a prediction result. More...
#include <Prediction.h>
Inheritance diagram for iCub::learningmachine::Prediction:Public Member Functions | |
| Prediction () | |
| Empty constructor. | |
| Prediction (const yarp::sig::Vector &prediction) | |
| Constructor for expected value prediction without predictive variance. | |
| Prediction (const yarp::sig::Vector &prediction, const yarp::sig::Vector &variance) | |
| Constructor for expected value prediction with predictive variance. | |
| unsigned int | size () |
| Returns the size of the prediction. | |
| yarp::sig::Vector | getPrediction () |
| Accessor for the expected value of the prediction. | |
| void | setPrediction (const yarp::sig::Vector &prediction) |
| Mutator for the expected value of the prediction. | |
| yarp::sig::Vector | getVariance () |
| Accessor for the variance of the prediction. | |
| void | setVariance (const yarp::sig::Vector &variance) |
| Mutator for the variance of the prediction. | |
| bool | hasVariance () |
| Indicator whether the prediction contains a predicted variance. | |
| std::string | toString () |
| Returns a string represenation of the prediction. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| bool | read (yarp::os::ConnectionReader &connection) |
| virtual void | onCompletion () |
Protected Attributes | |
| yarp::sig::Vector | prediction |
| Expected value of the prediction. | |
| yarp::sig::Vector | variance |
| Optional variance of the prediction, measured as a unit standard deviation. | |
| bool | varianceSet |
| Indicator whether prediction variance is available. | |
A class that represents a prediction result.
The serialization of this class is compatible with PortablePair<Vector,Vector>, such that standard Yarp classes can be used to read a Prediction from the network.
Definition at line 44 of file Prediction.h.
|
inline |
Empty constructor.
Definition at line 65 of file Prediction.h.
|
inline |
Constructor for expected value prediction without predictive variance.
| prediction | the predicted expected value |
| variance | the predicted expected variance in terms of a unit standard deviation |
Definition at line 77 of file Prediction.h.
|
inline |
Constructor for expected value prediction with predictive variance.
| prediction | the predicted expected value |
Definition at line 87 of file Prediction.h.
|
inline |
Accessor for the expected value of the prediction.
Definition at line 106 of file Prediction.h.
|
inline |
Accessor for the variance of the prediction.
More precisely, this returns a predicted unit standard deviation.
Definition at line 125 of file Prediction.h.
|
inline |
Indicator whether the prediction contains a predicted variance.
Definition at line 146 of file Prediction.h.
|
inlinevirtual |
Definition at line 211 of file Prediction.h.
|
inline |
Definition at line 186 of file Prediction.h.
|
inline |
Mutator for the expected value of the prediction.
| prediction | the predicted expected value |
Definition at line 115 of file Prediction.h.
|
inline |
Mutator for the variance of the prediction.
| variance | the predicted expected variance in terms of a unit standard deviation |
Definition at line 135 of file Prediction.h.
|
inline |
|
inline |
Returns a string represenation of the prediction.
Definition at line 155 of file Prediction.h.
|
inline |
Definition at line 166 of file Prediction.h.
|
protected |
Expected value of the prediction.
Definition at line 49 of file Prediction.h.
|
protected |
Optional variance of the prediction, measured as a unit standard deviation.
Definition at line 54 of file Prediction.h.
|
protected |
Indicator whether prediction variance is available.
Definition at line 59 of file Prediction.h.