pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::Rdm Struct Reference

A representational dissimilarity matrix: the distance between every pair of n inputs. More...

#include <representation_similarity.hpp>

Public Member Functions

double at (int64_t i, int64_t j) const
 The distance between inputs i and j; 0 when they are the same.
 

Public Attributes

int64_t n = 0
 
std::vector< double > values
 

Detailed Description

A representational dissimilarity matrix: the distance between every pair of n inputs.

Note
Stored condensed, as scipy's pdist stores it: pairs (0, 1), (0, 2), ..., (0, n-1), (1, 2), ..., n (n - 1) / 2 values.

Member Function Documentation

◆ at()

double pulsatrix::Rdm::at ( int64_t  i,
int64_t  j 
) const

The distance between inputs i and j; 0 when they are the same.

Member Data Documentation

◆ n

int64_t pulsatrix::Rdm::n = 0

◆ values

std::vector<double> pulsatrix::Rdm::values

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