iCub-main
|
A class that represents a prediction result. More...
#include <Prediction.h>
Public Member Functions | |
Prediction () | |
Empty constructor. More... | |
Prediction (const yarp::sig::Vector &prediction) | |
Constructor for expected value prediction without predictive variance. More... | |
Prediction (const yarp::sig::Vector &prediction, const yarp::sig::Vector &variance) | |
Constructor for expected value prediction with predictive variance. More... | |
unsigned int | size () |
Returns the size of the prediction. More... | |
yarp::sig::Vector | getPrediction () |
Accessor for the expected value of the prediction. More... | |
void | setPrediction (const yarp::sig::Vector &prediction) |
Mutator for the expected value of the prediction. More... | |
yarp::sig::Vector | getVariance () |
Accessor for the variance of the prediction. More... | |
void | setVariance (const yarp::sig::Vector &variance) |
Mutator for the variance of the prediction. More... | |
bool | hasVariance () |
Indicator whether the prediction contains a predicted variance. More... | |
std::string | toString () |
Returns a string represenation of the prediction. More... | |
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. More... | |
yarp::sig::Vector | variance |
Optional variance of the prediction, measured as a unit standard deviation. More... | |
bool | varianceSet |
Indicator whether prediction variance is available. More... | |
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.