Skip to content

Commit

Permalink
changed to uppercase class name for convention
Browse files Browse the repository at this point in the history
  • Loading branch information
osorensen committed Nov 21, 2023
1 parent e85b9a1 commit 7840bd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using namespace arma;

parameters::parameters(
Parameters::Parameters(
const Rcpp::List& model,
const Rcpp::List& compute_options,
const Rcpp::List& priors,
Expand Down Expand Up @@ -46,7 +46,7 @@ parameters::parameters(
}
}

void parameters::update_rho(int cluster_index, int t, int& rho_index,
void Parameters::update_rho(int cluster_index, int t, int& rho_index,
const mat& rankings,
const vec& observation_frequency) {
vec rho_cluster = rho_old.col(cluster_index);
Expand All @@ -60,7 +60,7 @@ void parameters::update_rho(int cluster_index, int t, int& rho_index,
}
}

void parameters::update_shape(int t, const mat& rankings,
void Parameters::update_shape(int t, const mat& rankings,
const Rcpp::List& constraints) {


Expand Down Expand Up @@ -90,7 +90,7 @@ void parameters::update_shape(int t, const mat& rankings,
theta(t) = rtruncbeta(shape_1(t), shape_2(t), 0.5);
}

void parameters::update_alpha(
void Parameters::update_alpha(
int cluster_index,
int alpha_index,
const mat& rankings,
Expand Down
6 changes: 3 additions & 3 deletions src/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
#include "distances.h"
#include "partitionfuns.h"

struct parameters {
parameters(const Rcpp::List& model,
struct Parameters {
Parameters(const Rcpp::List& model,
const Rcpp::List& compute_options,
const Rcpp::List& priors,
const Rcpp::List& initial_values,
const int n_items);
~parameters() = default;
~Parameters() = default;

void update_shape(int t, const arma::mat& rankings,
const Rcpp::List& constraints);
Expand Down
2 changes: 1 addition & 1 deletion src/run_mcmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Rcpp::List run_mcmc(Rcpp::List data,
bool augpair = (constraints.length() > 0);
bool any_missing = !is_finite(rankings);

parameters pars{model, compute_options, priors, initial_values, n_items};
Parameters pars{model, compute_options, priors, initial_values, n_items};

umat missing_indicator{};
cube augmented_data{};
Expand Down

0 comments on commit 7840bd0

Please sign in to comment.