#include <similarity_matrix.hh>
Inherits TriMatrix< Real >.
Public Member Functions | |
SimilarityMatrix (int n, Real def_val=std::numeric_limits< Real >::min()) | |
ost::img::ImageHandle | AsImage (bool full=false) const |
void | Save (const String &filename) |
Static Public Member Functions | |
static SimilarityMatrix | Load (const String &filename) |
Definition at line 13 of file similarity_matrix.hh.
SimilarityMatrix | ( | int | n, | |
Real | def_val = std::numeric_limits<Real>::min() | |||
) | [inline] |
initialise similarity matrix with n datapoints.
The distances are initialised with the default value
n | is the number of datapoints | |
def_val | is the default similarity |
Definition at line 21 of file similarity_matrix.hh.
ost::img::ImageHandle AsImage | ( | bool | full = false |
) | const |
static SimilarityMatrix Load | ( | const String & | filename | ) | [static] |
void Save | ( | const String & | filename | ) |