OpenStructure
Public Member Functions | Static Public Member Functions
SimilarityMatrix Class Reference

#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 RealGet (int i, int j) const
 
Realoperator() (int i, int j)
 
const Realoperator() (int i, int j) const
 
int GetSize () const
 
std::vector< Real > & Data ()
 

Static Public Member Functions

static SimilarityMatrix Load (const String &filename)
 

Detailed Description

Definition at line 13 of file similarity_matrix.hh.

Constructor & Destructor Documentation

◆ SimilarityMatrix()

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

Parameters
nis the number of datapoints
def_valis the default similarity

Definition at line 21 of file similarity_matrix.hh.

Member Function Documentation

◆ AsImage()

ost::img::ImageHandle AsImage ( bool  full = false) const

◆ Load()

static SimilarityMatrix Load ( const String filename)
static

◆ Save()

void Save ( const String filename)

The documentation for this class was generated from the following file: