noparama  v0.0.1
Nonparametric Bayesian models
Macros | Functions
membertrix.cpp File Reference
#include <iostream>
#include <iomanip>
#include <assert.h>
#include <pretty_print.hpp>
#include <membertrix.h>
Include dependency graph for membertrix.cpp:

Macros

#define SEPARATE_STRUCTURE   1
 
#define ADDITIONAL_CHECKS   1
 

Functions

std::ostream & operator<< (std::ostream &os, const membertrix &m)
 

Macro Definition Documentation

◆ ADDITIONAL_CHECKS

#define ADDITIONAL_CHECKS   1

Additional checks that slow done the running time. If the user is comfortable enough with the correct implementation of this class, ADDITIONAL_CHECKS should be set to 0.

◆ SEPARATE_STRUCTURE

#define SEPARATE_STRUCTURE   1

A separate data structure can be used for fast access to the observations that belong to a particular cluster. If SEPARATE_STRUCTURE is set to 0, the membership matrix has to be searched and a vector is populated in getData(structure_id_t).

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const membertrix m 
)

Allow a membership to be printed to a standard stream using the << operator.