Thesis 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
75 // ========== Spatial Dependency Parameters ==========
76
79
81 Eigen::MatrixXi W;
82
100 Params(double delta1 = 0.5, double alpha = 2, double beta = 2,
101 double delta2 = 2, double gamma = 2, double zeta = 2, int BI = 1000,
102 int NI = 10000, double a = 1.0, double sigma = 1.0, double tau = 1.0,
103 double coefficient = 1, Eigen::MatrixXi W = Eigen::MatrixXi())
105 zeta(zeta), BI(BI), NI(NI), a(a), sigma(sigma), tau(tau),
107};
108
109// Expose Params to R
RCPP_EXPOSED_CLASS(Params)
Structure containing all parameters needed for the NGGP (Normalized Generalized Gamma Process) and DP...
Definition Params.hpp:35
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
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
Eigen::MatrixXi W
Adjacency matrix defining spatial neighborhood structure.
Definition Params.hpp:81
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
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 coefficient
Coefficient controlling the strength of spatial dependency.
Definition Params.hpp:78
double delta2
Shape parameter for the second gamma distribution prior.
Definition Params.hpp:48
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, double coefficient=1, Eigen::MatrixXi W=Eigen::MatrixXi())
Constructor with default parameter values.
Definition Params.hpp:100