|
noparama
v0.0.1
Nonparametric Bayesian models
|
#include <iostream>#include <iomanip>#include <assert.h>#include <pretty_print.hpp>#include <membertrix.h>
Macros | |
| #define | SEPARATE_STRUCTURE 1 |
| #define | ADDITIONAL_CHECKS 1 |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const membertrix &m) |
| #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.
| #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).
| std::ostream& operator<< | ( | std::ostream & | os, |
| const membertrix & | m | ||
| ) |
Allow a membership to be printed to a standard stream using the << operator.
1.8.13