A vector of probablility values. More...
#include <mia/core/probmap.hh>
Inherits vector< double_vector >.
Public Member Functions | |
CProbabilityVector () | |
CProbabilityVector (size_t nClass, size_t nElm) | |
CProbabilityVector (const std::string &in_fname) | |
bool | save (const std::string &out_fname) const |
A vector of probablility values.
A vector of probablility values that supports loading and storing the data.
Definition at line 43 of file probmap.hh.
CProbabilityVector::CProbabilityVector | ( | ) |
standard constructor
CProbabilityVector::CProbabilityVector | ( | size_t | nClass, |
size_t | nElm | ||
) |
Constructor using describing the probability vector
nClass | number of probablilities per element |
nElm | numer of elments (aka intensities) |
CProbabilityVector::CProbabilityVector | ( | const std::string & | in_fname | ) |
Loads a probability map from a file, throws an exception of the operation fails.
in_fname | input file name "-" reads from stdin |
bool CProbabilityVector::save | ( | const std::string & | out_fname | ) | const |
Saves a probability map to a file,
out_fname | output filemake, "-" uses stdout |