|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
Class for representing class labels for classification. Slightly limited
approach means that they are assumed to be incrementing unsigned integers
but this is required to facilitate access to a vector of corresponding
class probabilities.
Base class in the PatternRec hierarchy and is used in conjunction with
classification objects derived from NumClassifyC for representing class
labels.
Variables:
Methods:
- NumLabelC()
-
Default constructor
Label value is undefined.
- NumLabelC(UIntT label)
-
Constructor with label value
- NumLabelC(istream & in)
-
Constructs from stream
- NumLabelC(const VectorC & oth)
-
Constructs from probability vector
Converts from vector to label using VecToLabel.
- NumLabelC(const NumLabelC & oth)
-
Copy constructor
- BooleanT operator==(const NumLabelC & oth) const
-
Equality operator
- BooleanT operator!=(const NumLabelC & oth) const
-
Inequality operator
- NumLabelC Copy() const
-
Makes a copy, needed for containers
- void Save(ostream & out) const
-
Writes object to stream, can be loaded using constructor
- int LessOrEqual(const NumLabelC & oth) const
-
Compares two labels, used for sorting
- IndexT AsIndex() const
-
Treats label as an index for accessing probability vectors
- UIntT AsUIntT() const
-
Converts label to unsigned integer
- void SetInvalid()
-
Set this label to an invalid value.
- BooleanT IsInvalid() const
-
Is this an invalid label ?
- UIntT Hash() const
-
Get hash value for label.
|
Programmer:Robert Crida, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|