Docs
Loading...
Searching...
No Matches
Params.hpp
Go to the documentation of this file.
1
13
14#pragma once
15
16#include <Eigen/Dense>
17
33struct Params {
34 // ========== Distribution Hyperparameters ==========
35
37 double delta1;
38
40 double alpha;
41
43 double beta;
44
46 double delta2;
47
49 double gamma;
50
52 double zeta;
53
54 // ========== Simulation Control Parameters ==========
55
57 int BI;
58
60 int NI;
61
62 // ========== NGGP Process Parameters ==========
63
65 double a;
66
68 double sigma;
69
71 double tau;
72
74 Eigen::MatrixXd D;
75
77 int n;
78
95 Params(double delta1 = 0.5, double alpha = 2, double beta = 2, double delta2 = 2, double gamma = 2, double zeta = 2,
96 int BI = 1000, int NI = 10000, double a = 1.0, double sigma = 1.0, double tau = 1.0,
97 Eigen::MatrixXd D = Eigen::MatrixXd())
99 sigma(sigma), tau(tau), D(D) {
100 n = D.rows();
101 }
102};
double a
Total mass parameter of the NGGP (controls number of clusters).
Definition Params.hpp:65
double zeta
Rate parameter for the theta_kt gamma distribution.
Definition Params.hpp:52
Params(double delta1=0.5, double alpha=2, double beta=2, double delta2=2, double gamma=2, double zeta=2, int BI=1000, int NI=10000, double a=1.0, double sigma=1.0, double tau=1.0, Eigen::MatrixXd D=Eigen::MatrixXd())
Constructor with default parameter values.
Definition Params.hpp:95
double alpha
Shape parameter for the lambda_k gamma distribution.
Definition Params.hpp:40
double gamma
Shape parameter for the theta_kt gamma distribution.
Definition Params.hpp:49
double tau
Third parameter of the NGGP (controls tail behavior).
Definition Params.hpp:71
double beta
Rate parameter for the lambda_k gamma distribution.
Definition Params.hpp:43
int NI
Number of iterations after burn-in for posterior sampling.
Definition Params.hpp:60
double sigma
Second parameter of the NGGP (controls cluster sizes).
Definition Params.hpp:68
Eigen::MatrixXd D
Distance matrix.
Definition Params.hpp:74
double delta1
Shape parameter for the first gamma distribution prior.
Definition Params.hpp:37
int BI
Number of burn-in iterations to discard for chain convergence.
Definition Params.hpp:57
double delta2
Shape parameter for the second gamma distribution prior.
Definition Params.hpp:46
int n
Number of points.
Definition Params.hpp:77