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#include <Rcpp.h>
18#include <RcppEigen.h>
19
35struct Params {
36 // ========== Distribution Hyperparameters ==========
37
39 double delta1;
40
42 double alpha;
43
45 double beta;
46
48 double delta2;
49
51 double gamma;
52
54 double zeta;
55
56 // ========== Simulation Control Parameters ==========
57
59 int BI;
60
62 int NI;
63
64 // ========== NGGP Process Parameters ==========
65
67 double a;
68
70 double sigma;
71
73 double tau;
74
76 Eigen::MatrixXd D;
77
79 int n;
80
97 Params(double delta1 = 0.5, double alpha = 2, double beta = 2, double delta2 = 2, double gamma = 2, double zeta = 2,
98 int BI = 1000, int NI = 10000, double a = 1.0, double sigma = 1.0, double tau = 1.0,
99 Eigen::MatrixXd D = Eigen::MatrixXd())
101 sigma(sigma), tau(tau), D(D) {
102 n = D.rows();
103 }
104};
double a
Total mass parameter of the NGGP (controls number of clusters).
Definition Params.hpp:67
double zeta
Rate parameter for the theta_kt gamma distribution.
Definition Params.hpp:54
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:97
double alpha
Shape parameter for the lambda_k gamma distribution.
Definition Params.hpp:42
double gamma
Shape parameter for the theta_kt gamma distribution.
Definition Params.hpp:51
double tau
Third parameter of the NGGP (controls tail behavior).
Definition Params.hpp:73
double beta
Rate parameter for the lambda_k gamma distribution.
Definition Params.hpp:45
int NI
Number of iterations after burn-in for posterior sampling.
Definition Params.hpp:62
double sigma
Second parameter of the NGGP (controls cluster sizes).
Definition Params.hpp:70
Eigen::MatrixXd D
Distance matrix.
Definition Params.hpp:76
double delta1
Shape parameter for the first gamma distribution prior.
Definition Params.hpp:39
int BI
Number of burn-in iterations to discard for chain convergence.
Definition Params.hpp:59
double delta2
Shape parameter for the second gamma distribution prior.
Definition Params.hpp:48
int n
Number of points.
Definition Params.hpp:79