Skip to content

Commit

Permalink
Speed up beta_neg_binomial_lccdf test (#3118)
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian authored Oct 30, 2024
2 parents 65fc8e6 + 177994d commit 8ab9760
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/prob/beta_neg_binomial/beta_neg_binomial_ccdf_log_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class AgradCcdfLogBetaNegBinomial : public AgradCcdfLogTest {
vector<double>& ccdf_log) {
vector<double> param(4);

param[0] = 10; // n
param[1] = 5.5; // r
param[2] = 2.5; // alpha
param[3] = 0.5; // beta
param[0] = 0; // n
param[1] = 1.0; // r
param[2] = 5.0; // alpha
param[3] = 1.0; // beta
parameters.push_back(param);
ccdf_log.push_back(std::log(1.0 - 0.967906252841089)); // expected ccdf_log
ccdf_log.push_back(std::log(1.0 - 0.833333333333333)); // expected ccdf_log
}

void invalid_values(vector<size_t>& index, vector<double>& value) {
Expand Down

0 comments on commit 8ab9760

Please sign in to comment.