Skip to content

Commit

Permalink
Add const keyword to getters
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher committed Dec 16, 2024
1 parent a1a79ed commit f7f3ab5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
66 changes: 33 additions & 33 deletions epiworld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1301,25 +1301,25 @@ class LFMCMC {
size_t get_n_params() const {return m_n_params;};
epiworld_double get_epsilon() const {return m_epsilon;};

const std::vector< epiworld_double > & get_initial_params() {return m_initial_params;};
const std::vector< epiworld_double > & get_current_proposed_params() {return m_current_proposed_params;};
const std::vector< epiworld_double > & get_current_accepted_params() {return m_current_accepted_params;};
const std::vector< epiworld_double > & get_current_proposed_stats() {return m_current_proposed_stats;};
const std::vector< epiworld_double > & get_current_accepted_stats() {return m_current_accepted_stats;};

const std::vector< epiworld_double > & get_observed_stats() {return m_observed_stats;};

const std::vector< epiworld_double > & get_all_sample_params() {return m_all_sample_params;};
const std::vector< epiworld_double > & get_all_sample_stats() {return m_all_sample_stats;};
const std::vector< bool > & get_all_sample_acceptance() {return m_all_sample_acceptance;};
const std::vector< epiworld_double > & get_all_sample_drawn_prob() {return m_all_sample_drawn_prob;};
const std::vector< epiworld_double > & get_all_sample_kernel_scores() {return m_all_sample_kernel_scores;};

const std::vector< epiworld_double > & get_all_accepted_params() {return m_all_accepted_params;};
const std::vector< epiworld_double > & get_all_accepted_stats() {return m_all_accepted_stats;};
const std::vector< epiworld_double > & get_all_accepted_kernel_scores() {return m_all_accepted_kernel_scores;};
const std::vector< epiworld_double > & get_initial_params() const {return m_initial_params;};
const std::vector< epiworld_double > & get_current_proposed_params() const {return m_current_proposed_params;};
const std::vector< epiworld_double > & get_current_accepted_params() const {return m_current_accepted_params;};
const std::vector< epiworld_double > & get_current_proposed_stats() const {return m_current_proposed_stats;};
const std::vector< epiworld_double > & get_current_accepted_stats() const {return m_current_accepted_stats;};

const std::vector< epiworld_double > & get_observed_stats() const {return m_observed_stats;};

const std::vector< epiworld_double > & get_all_sample_params() const {return m_all_sample_params;};
const std::vector< epiworld_double > & get_all_sample_stats() const {return m_all_sample_stats;};
const std::vector< bool > & get_all_sample_acceptance() const {return m_all_sample_acceptance;};
const std::vector< epiworld_double > & get_all_sample_drawn_prob() const {return m_all_sample_drawn_prob;};
const std::vector< epiworld_double > & get_all_sample_kernel_scores() const {return m_all_sample_kernel_scores;};

const std::vector< epiworld_double > & get_all_accepted_params() const {return m_all_accepted_params;};
const std::vector< epiworld_double > & get_all_accepted_stats() const {return m_all_accepted_stats;};
const std::vector< epiworld_double > & get_all_accepted_kernel_scores() const {return m_all_accepted_kernel_scores;};

std::vector< TData > * get_simulated_data() {return m_simulated_data;};
std::vector< TData > * get_simulated_data() const {return m_simulated_data;};

std::vector< epiworld_double > get_mean_params();
std::vector< epiworld_double > get_mean_stats();
Expand Down Expand Up @@ -1603,25 +1603,25 @@ class LFMCMC {
size_t get_n_params() const {return m_n_params;};
epiworld_double get_epsilon() const {return m_epsilon;};

const std::vector< epiworld_double > & get_initial_params() {return m_initial_params;};
const std::vector< epiworld_double > & get_current_proposed_params() {return m_current_proposed_params;};
const std::vector< epiworld_double > & get_current_accepted_params() {return m_current_accepted_params;};
const std::vector< epiworld_double > & get_current_proposed_stats() {return m_current_proposed_stats;};
const std::vector< epiworld_double > & get_current_accepted_stats() {return m_current_accepted_stats;};
const std::vector< epiworld_double > & get_initial_params() const {return m_initial_params;};
const std::vector< epiworld_double > & get_current_proposed_params() const {return m_current_proposed_params;};
const std::vector< epiworld_double > & get_current_accepted_params() const {return m_current_accepted_params;};
const std::vector< epiworld_double > & get_current_proposed_stats() const {return m_current_proposed_stats;};
const std::vector< epiworld_double > & get_current_accepted_stats() const {return m_current_accepted_stats;};

const std::vector< epiworld_double > & get_observed_stats() {return m_observed_stats;};
const std::vector< epiworld_double > & get_observed_stats() const {return m_observed_stats;};

const std::vector< epiworld_double > & get_all_sample_params() {return m_all_sample_params;};
const std::vector< epiworld_double > & get_all_sample_stats() {return m_all_sample_stats;};
const std::vector< bool > & get_all_sample_acceptance() {return m_all_sample_acceptance;};
const std::vector< epiworld_double > & get_all_sample_drawn_prob() {return m_all_sample_drawn_prob;};
const std::vector< epiworld_double > & get_all_sample_kernel_scores() {return m_all_sample_kernel_scores;};
const std::vector< epiworld_double > & get_all_sample_params() const {return m_all_sample_params;};
const std::vector< epiworld_double > & get_all_sample_stats() const {return m_all_sample_stats;};
const std::vector< bool > & get_all_sample_acceptance() const {return m_all_sample_acceptance;};
const std::vector< epiworld_double > & get_all_sample_drawn_prob() const {return m_all_sample_drawn_prob;};
const std::vector< epiworld_double > & get_all_sample_kernel_scores() const {return m_all_sample_kernel_scores;};

const std::vector< epiworld_double > & get_all_accepted_params() {return m_all_accepted_params;};
const std::vector< epiworld_double > & get_all_accepted_stats() {return m_all_accepted_stats;};
const std::vector< epiworld_double > & get_all_accepted_kernel_scores() {return m_all_accepted_kernel_scores;};
const std::vector< epiworld_double > & get_all_accepted_params() const {return m_all_accepted_params;};
const std::vector< epiworld_double > & get_all_accepted_stats() const {return m_all_accepted_stats;};
const std::vector< epiworld_double > & get_all_accepted_kernel_scores() const {return m_all_accepted_kernel_scores;};

std::vector< TData > * get_simulated_data() {return m_simulated_data;};
std::vector< TData > * get_simulated_data() const {return m_simulated_data;};

std::vector< epiworld_double > get_mean_params();
std::vector< epiworld_double > get_mean_stats();
Expand Down
36 changes: 18 additions & 18 deletions include/epiworld/math/lfmcmc/lfmcmc-bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,25 +239,25 @@ class LFMCMC {
size_t get_n_params() const {return m_n_params;};
epiworld_double get_epsilon() const {return m_epsilon;};

const std::vector< epiworld_double > & get_initial_params() {return m_initial_params;};
const std::vector< epiworld_double > & get_current_proposed_params() {return m_current_proposed_params;};
const std::vector< epiworld_double > & get_current_accepted_params() {return m_current_accepted_params;};
const std::vector< epiworld_double > & get_current_proposed_stats() {return m_current_proposed_stats;};
const std::vector< epiworld_double > & get_current_accepted_stats() {return m_current_accepted_stats;};

const std::vector< epiworld_double > & get_observed_stats() {return m_observed_stats;};

const std::vector< epiworld_double > & get_all_sample_params() {return m_all_sample_params;};
const std::vector< epiworld_double > & get_all_sample_stats() {return m_all_sample_stats;};
const std::vector< bool > & get_all_sample_acceptance() {return m_all_sample_acceptance;};
const std::vector< epiworld_double > & get_all_sample_drawn_prob() {return m_all_sample_drawn_prob;};
const std::vector< epiworld_double > & get_all_sample_kernel_scores() {return m_all_sample_kernel_scores;};

const std::vector< epiworld_double > & get_all_accepted_params() {return m_all_accepted_params;};
const std::vector< epiworld_double > & get_all_accepted_stats() {return m_all_accepted_stats;};
const std::vector< epiworld_double > & get_all_accepted_kernel_scores() {return m_all_accepted_kernel_scores;};
const std::vector< epiworld_double > & get_initial_params() const {return m_initial_params;};
const std::vector< epiworld_double > & get_current_proposed_params() const {return m_current_proposed_params;};
const std::vector< epiworld_double > & get_current_accepted_params() const {return m_current_accepted_params;};
const std::vector< epiworld_double > & get_current_proposed_stats() const {return m_current_proposed_stats;};
const std::vector< epiworld_double > & get_current_accepted_stats() const {return m_current_accepted_stats;};

const std::vector< epiworld_double > & get_observed_stats() const {return m_observed_stats;};

const std::vector< epiworld_double > & get_all_sample_params() const {return m_all_sample_params;};
const std::vector< epiworld_double > & get_all_sample_stats() const {return m_all_sample_stats;};
const std::vector< bool > & get_all_sample_acceptance() const {return m_all_sample_acceptance;};
const std::vector< epiworld_double > & get_all_sample_drawn_prob() const {return m_all_sample_drawn_prob;};
const std::vector< epiworld_double > & get_all_sample_kernel_scores() const {return m_all_sample_kernel_scores;};

const std::vector< epiworld_double > & get_all_accepted_params() const {return m_all_accepted_params;};
const std::vector< epiworld_double > & get_all_accepted_stats() const {return m_all_accepted_stats;};
const std::vector< epiworld_double > & get_all_accepted_kernel_scores() const {return m_all_accepted_kernel_scores;};

std::vector< TData > * get_simulated_data() {return m_simulated_data;};
std::vector< TData > * get_simulated_data() const {return m_simulated_data;};

std::vector< epiworld_double > get_mean_params();
std::vector< epiworld_double > get_mean_stats();
Expand Down

0 comments on commit f7f3ab5

Please sign in to comment.