Skip to content

Commit 90288c2

Browse files
committed
speedup beta_neg_binomial_lcdf test
1 parent 3e37933 commit 90288c2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/prob/beta_neg_binomial/beta_neg_binomial_cdf_log_test.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ using std::vector;
1010
class AgradCdfLogBetaNegBinomial : public AgradCdfLogTest {
1111
public:
1212
void valid_values(vector<vector<double>>& parameters,
13-
vector<double>& ccdf_log) {
13+
vector<double>& cdf_log) {
1414
vector<double> param(4);
1515

16-
param[0] = 10; // n
17-
param[1] = 5.5; // r
18-
param[2] = 2.5; // alpha
19-
param[3] = 0.5; // beta
16+
param[0] = 0; // n
17+
param[1] = 1.0; // r
18+
param[2] = 5.0; // alpha
19+
param[3] = 1.0; // beta
2020
parameters.push_back(param);
21-
ccdf_log.push_back(std::log(0.967906252841089)); // expected cdf_log
21+
cdf_log.push_back(std::log(0.833333333333333)); // expected cdf_log
2222
}
2323

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

0 commit comments

Comments
 (0)