46 mutable std::mt19937 gen;
64 void step_1_observation(
int index);
66 int sample_from_log_probs(
const std::vector<double>& log_probs);
101 void step()
override;
Abstract base class for MCMC sampling algorithms.
Manages distance matrices and cluster allocations for points.
Definition Data.hpp:26
Computes log-likelihood for clusters based on distance-based cohesion and repulsion.
Definition Likelihood.hpp:19
void step() override
Perform one complete iteration of Neal's Algorithm 3.
Definition neal.cpp:80
Neal3(Data &d, Params &p, Likelihood &l, Process &pr)
Constructor for Neal's Algorithm 3 sampler.
Definition neal.hpp:82
Abstract base class for Bayesian nonparametric processes.
Definition Process.hpp:41
Sampler(Data &d, Params &p, Likelihood &l, Process &pr)
Constructor initializing sampler with required components.
Definition Sampler.hpp:98
std::random_device rd
Random device for generating random numbers across sampling algorithms.
Definition Sampler.hpp:74
Structure containing all parameters needed for the NGGP (Normalized Generalized Gamma Process) and DP...
Definition Params.hpp:35