|
OpenStructure
|
#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) |
Public Member Functions inherited from TriMatrix< Real > | |
| TriMatrix (int n, const Real &def_val=Real()) | |
| void | Set (int i, int j, const Real &sim) |
| const Real & | Get (int i, int j) const |
| Real & | operator() (int i, int j) |
| const Real & | operator() (int i, int j) const |
| int | GetSize () const |
| std::vector< Real > & | Data () |
Static Public Member Functions | |
| static SimilarityMatrix | Load (const String &filename) |
Definition at line 13 of file similarity_matrix.hh.
|
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 |
| void Save | ( | const String & | filename | ) |
1.8.5