Skip to content

Commit d1c0075

Browse files
authored
Merge pull request #3263 from stan-dev/wiener_unnorm
Wiener cdfs: replace _defective with _unnorm
2 parents a5f8022 + 676be2c commit d1c0075

File tree

49 files changed

+1065
-1063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1065
-1063
lines changed

stan/math/prim/prob.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@
311311
#include <stan/math/prim/prob/weibull_rng.hpp>
312312
#include <stan/math/prim/prob/wiener5_lpdf.hpp>
313313
#include <stan/math/prim/prob/wiener_lpdf.hpp>
314-
#include <stan/math/prim/prob/wiener4_lcdf_defective.hpp>
315-
#include <stan/math/prim/prob/wiener4_lccdf_defective.hpp>
314+
#include <stan/math/prim/prob/wiener4_lcdf_unnorm.hpp>
315+
#include <stan/math/prim/prob/wiener4_lccdf_unnorm.hpp>
316316
#include <stan/math/prim/prob/wiener_full_lpdf.hpp>
317-
#include <stan/math/prim/prob/wiener_full_lcdf_defective.hpp>
318-
#include <stan/math/prim/prob/wiener_full_lccdf_defective.hpp>
317+
#include <stan/math/prim/prob/wiener_full_lcdf_unnorm.hpp>
318+
#include <stan/math/prim/prob/wiener_full_lccdf_unnorm.hpp>
319319
#include <stan/math/prim/prob/wishart_cholesky_lpdf.hpp>
320320
#include <stan/math/prim/prob/wishart_cholesky_rng.hpp>
321321
#include <stan/math/prim/prob/wishart_lpdf.hpp>

stan/math/prim/prob/wiener4_lccdf_defective.hpp renamed to stan/math/prim/prob/wiener4_lccdf_unnorm.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#ifndef STAN_MATH_PRIM_PROB_WIENER4_LCCDF_DEFECTIVE_HPP
2-
#define STAN_MATH_PRIM_PROB_WIENER4_LCCDF_DEFECTIVE_HPP
1+
#ifndef STAN_MATH_PRIM_PROB_WIENER4_LCCDF_UNNORM_HPP
2+
#define STAN_MATH_PRIM_PROB_WIENER4_LCCDF_UNNORM_HPP
33

4-
#include <stan/math/prim/prob/wiener4_lcdf_defective.hpp>
4+
#include <stan/math/prim/prob/wiener4_lcdf_unnorm.hpp>
55

66
namespace stan {
77
namespace math {
@@ -224,9 +224,9 @@ inline auto wiener4_ccdf_grad_w(const T_y& y, const T_a& a, const T_v& v,
224224
*/
225225
template <bool propto = false, typename T_y, typename T_a, typename T_t0,
226226
typename T_w, typename T_v>
227-
inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
228-
const T_w& w, const T_v& v,
229-
const double& precision_derivatives = 1e-4) {
227+
inline auto wiener_lccdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
228+
const T_w& w, const T_v& v,
229+
const double& precision_derivatives = 1e-4) {
230230
using T_partials_return = partials_return_t<T_y, T_a, T_t0, T_w, T_v>;
231231
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v>;
232232
using T_y_ref = ref_type_t<T_y>;

stan/math/prim/prob/wiener4_lcdf_defective.hpp renamed to stan/math/prim/prob/wiener4_lcdf_unnorm.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef STAN_MATH_PRIM_PROB_WIENER4_LCDF_DEFECTIVE_HPP
2-
#define STAN_MATH_PRIM_PROB_WIENER4_LCDF_DEFECTIVE_HPP
1+
#ifndef STAN_MATH_PRIM_PROB_WIENER4_LCDF_UNNORM_HPP
2+
#define STAN_MATH_PRIM_PROB_WIENER4_LCDF_UNNORM_HPP
33

44
#include <stan/math/prim/prob/wiener5_lpdf.hpp>
55

@@ -586,9 +586,9 @@ inline auto wiener4_cdf_grad_w(const T_y& y, const T_a& a, const T_v& v,
586586
*/
587587
template <bool propto = false, typename T_y, typename T_a, typename T_t0,
588588
typename T_w, typename T_v>
589-
inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
590-
const T_w& w, const T_v& v,
591-
const double& precision_derivatives = 1e-4) {
589+
inline auto wiener_lcdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
590+
const T_w& w, const T_v& v,
591+
const double& precision_derivatives = 1e-4) {
592592
using T_partials_return = partials_return_t<T_y, T_a, T_t0, T_w, T_v>;
593593
using T_y_ref = ref_type_t<T_y>;
594594
using T_a_ref = ref_type_t<T_a>;

stan/math/prim/prob/wiener_full_lccdf_defective.hpp renamed to stan/math/prim/prob/wiener_full_lccdf_unnorm.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#ifndef STAN_MATH_PRIM_PROB_WIENER_FULL_LCCDF_DEFECTIVE_HPP
2-
#define STAN_MATH_PRIM_PROB_WIENER_FULL_LCCDF_DEFECTIVE_HPP
1+
#ifndef STAN_MATH_PRIM_PROB_WIENER_FULL_LCCDF_UNNORM_HPP
2+
#define STAN_MATH_PRIM_PROB_WIENER_FULL_LCCDF_UNNORM_HPP
33

4-
#include <stan/math/prim/prob/wiener4_lccdf_defective.hpp>
5-
#include <stan/math/prim/prob/wiener_full_lcdf_defective.hpp>
4+
#include <stan/math/prim/prob/wiener4_lccdf_unnorm.hpp>
5+
#include <stan/math/prim/prob/wiener_full_lcdf_unnorm.hpp>
66

77
namespace stan {
88
namespace math {
@@ -84,10 +84,10 @@ inline auto wiener7_ccdf_grad_sw(const T_y& y, const T_a& a, const T_v& v,
8484
template <bool propto = false, typename T_y, typename T_a, typename T_t0,
8585
typename T_w, typename T_v, typename T_sv, typename T_sw,
8686
typename T_st0>
87-
inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
88-
const T_w& w, const T_v& v, const T_sv& sv,
89-
const T_sw& sw, const T_st0& st0,
90-
const double& precision_derivatives = 1e-8) {
87+
inline auto wiener_lccdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
88+
const T_w& w, const T_v& v, const T_sv& sv,
89+
const T_sw& sw, const T_st0& st0,
90+
const double& precision_derivatives = 1e-8) {
9191
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;
9292
using T_y_ref = ref_type_t<T_y>;
9393
using T_a_ref = ref_type_t<T_a>;
@@ -124,7 +124,7 @@ inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
124124
return ret_t(0.0);
125125
}
126126

127-
static constexpr const char* function_name = "wiener_lccdf_defective";
127+
static constexpr const char* function_name = "wiener_lccdf_unnorm";
128128
check_consistent_sizes(function_name, "Random variable", y,
129129
"Boundary separation", a, "Drift rate", v,
130130
"A-priori bias", w, "Nondecision time", t0,
@@ -211,9 +211,9 @@ inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
211211
// calculate density and partials
212212
for (size_t i = 0; i < N; i++) {
213213
if (sv_vec[i] == 0 && sw_vec[i] == 0 && st0_vec[i] == 0) {
214-
result += wiener_lccdf_defective<propto>(y_vec[i], a_vec[i], t0_vec[i],
215-
w_vec[i], v_vec[i],
216-
precision_derivatives);
214+
result += wiener_lccdf_unnorm<propto>(y_vec[i], a_vec[i], t0_vec[i],
215+
w_vec[i], v_vec[i],
216+
precision_derivatives);
217217
continue;
218218
}
219219
const T_partials_return y_value = y_vec.val(i);

stan/math/prim/prob/wiener_full_lcdf_defective.hpp renamed to stan/math/prim/prob/wiener_full_lcdf_unnorm.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#ifndef STAN_MATH_PRIM_PROB_WIENER_FULL_LCDF_DEFECTIVE_HPP
2-
#define STAN_MATH_PRIM_PROB_WIENER_FULL_LCDF_DEFECTIVE_HPP
1+
#ifndef STAN_MATH_PRIM_PROB_WIENER_FULL_LCDF_UNNORM_HPP
2+
#define STAN_MATH_PRIM_PROB_WIENER_FULL_LCDF_UNNORM_HPP
33

4-
#include <stan/math/prim/prob/wiener4_lcdf_defective.hpp>
4+
#include <stan/math/prim/prob/wiener4_lcdf_unnorm.hpp>
55
#include <stan/math/prim/prob/wiener_full_lpdf.hpp>
66

77
namespace stan {
@@ -260,10 +260,10 @@ inline auto wiener7_integrate_cdf(const Wiener7FunctorT& wiener7_functor,
260260
template <bool propto = false, typename T_y, typename T_a, typename T_t0,
261261
typename T_w, typename T_v, typename T_sv, typename T_sw,
262262
typename T_st0>
263-
inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
264-
const T_w& w, const T_v& v, const T_sv& sv,
265-
const T_sw& sw, const T_st0& st0,
266-
const double& precision_derivatives = 1e-8) {
263+
inline auto wiener_lcdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
264+
const T_w& w, const T_v& v, const T_sv& sv,
265+
const T_sw& sw, const T_st0& st0,
266+
const double& precision_derivatives = 1e-8) {
267267
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;
268268
using T_y_ref = ref_type_t<T_y>;
269269
using T_a_ref = ref_type_t<T_a>;
@@ -300,7 +300,7 @@ inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
300300
return ret_t(0);
301301
}
302302

303-
static constexpr const char* function_name = "wiener_lcdf_defective";
303+
static constexpr const char* function_name = "wiener_lcdf_unnorm";
304304
check_consistent_sizes(function_name, "Random variable", y,
305305
"Boundary separation", a, "Drift rate", v,
306306
"A-priori bias", w, "Nondecision time", t0,
@@ -387,9 +387,9 @@ inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
387387
// calculate density and partials
388388
for (size_t i = 0; i < N; i++) {
389389
if (sv_vec[i] == 0 && sw_vec[i] == 0 && st0_vec[i] == 0) {
390-
result += wiener_lcdf_defective<propto>(y_vec[i], a_vec[i], t0_vec[i],
391-
w_vec[i], v_vec[i],
392-
precision_derivatives);
390+
result
391+
+= wiener_lcdf_unnorm<propto>(y_vec[i], a_vec[i], t0_vec[i], w_vec[i],
392+
v_vec[i], precision_derivatives);
393393
continue;
394394
}
395395
const T_partials_return y_value = y_vec.val(i);

test/sig_utils.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_cpp_type(stan_type):
8181
"cov_matrix_constrain": [None, 1],
8282
"cholesky_decompose": [pos_definite, None],
8383
"cholesky_corr_constrain": [None, 2],
84-
"cholesky_factor_constrain": [None, 1,1],
84+
"cholesky_factor_constrain": [None, 1, 1],
8585
"csr_to_dense_matrix": [1, 1, None, [1], [1, 2]],
8686
"csr_matrix_times_vector": [1, 1, None, [1], [1, 2], None],
8787
"distance": [0.6, 0.4],
@@ -145,17 +145,17 @@ def get_cpp_type(stan_type):
145145
"uniform_lcdf": [None, 0.2, 0.9],
146146
"uniform_lpdf": [None, 0.2, 0.9],
147147
"uniform_rng": [0.2, 1.9, None],
148-
"wiener_lpdf": [0.8, None, 0.4, None, None, None, None, None, 1e-4],
149-
"wiener_lccdf_defective": [0.8, None, 0.4, None, None, None, None, None, 1e-4],
150-
"wiener_lcdf_defective": [0.8, None, 0.4, None, None, None, None, None, 1e-4],
148+
"wiener_lpdf": [0.8, None, 0.4, None, None, None, None, None, 1e-4],
149+
"wiener_lccdf_unnorm": [0.8, None, 0.4, None, None, None, None, None, 1e-4],
150+
"wiener_lcdf_unnorm": [0.8, None, 0.4, None, None, None, None, None, 1e-4],
151151
}
152152

153153
# list of functions we do not test. These are mainly functions implemented in compiler
154154
# (not in Stan Math).
155155
ignored = [
156-
"std_normal_qf", # synonym for inv_Phi
156+
"std_normal_qf", # synonym for inv_Phi
157157
"if_else",
158-
"hypergeometric_3F2", # requires arguments of specific lengths
158+
"hypergeometric_3F2", # requires arguments of specific lengths
159159
]
160160

161161
# these are all slight renames compared to stan math
@@ -183,8 +183,8 @@ def get_cpp_type(stan_type):
183183
"ode_bdf_tol": [4, 5, 6],
184184
"ode_rk45_tol": [4, 5, 6],
185185
"wiener_lpdf": [6, 8],
186-
"wiener_lccdf_defective": [5, 8],
187-
"wiener_lcdf_defective": [5, 8],
186+
"wiener_lccdf_unnorm": [5, 8],
187+
"wiener_lcdf_unnorm": [5, 8],
188188
}
189189

190190
# lists of functions that do not support fwd or rev autodiff
@@ -297,6 +297,7 @@ def get_signatures():
297297

298298
return res + internal_signatures
299299

300+
300301
def handle_rename(function_name):
301302
"""
302303
Replace certain function names with their stan math counterparts
@@ -306,6 +307,7 @@ def handle_rename(function_name):
306307
fname = fname.replace("_unconstrain", "_free")
307308
return fname
308309

310+
309311
def parse_signature(signature):
310312
"""
311313
Parses one signature

test/unit/math/mix/prob/wiener4_lccdf_defective_0_test.cpp renamed to test/unit/math/mix/prob/wiener4_lccdf_unnorm_0_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TEST(mathMixDouble, wiener4_lccdf) {
77
double t0 = 0.2;
88
double w = 0.5;
99
double v = 1.5;
10-
stan::math::wiener_lccdf_defective(y, a, t0, w, v, 1e-4);
10+
stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
1111
}
1212

1313
TEST(mathMixVar, wiener4_lccdf) {
@@ -17,7 +17,7 @@ TEST(mathMixVar, wiener4_lccdf) {
1717
var t0 = 0.2;
1818
var w = 0.5;
1919
var v = 1.5;
20-
stan::math::wiener_lccdf_defective(y, a, t0, w, v, 1e-4);
20+
stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
2121
}
2222

2323
TEST(mathMixFVar, wiener4_lccdf) {
@@ -29,5 +29,5 @@ TEST(mathMixFVar, wiener4_lccdf) {
2929
fvar<var> w = 0.5;
3030
fvar<var> v = 1.5;
3131
double error = 1e-4;
32-
stan::math::wiener_lccdf_defective(y, a, t0, w, v, error);
32+
stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, error);
3333
}

test/unit/math/mix/prob/wiener4_lcdf_defective_1_test.cpp renamed to test/unit/math/mix/prob/wiener4_lccdf_unnorm_1_test.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@
22
#include <test/unit/math/test_ad.hpp>
33
#include <test/unit/math/mix/prob/util.hpp>
44

5-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_y_a_t0) {
5+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_y_a_t0) {
66
auto f_y_a_t0 = [](const auto& w, const auto& v) {
77
return [&w, &v](const auto& y, const auto& a, const auto& t0) {
8-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
8+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
99
};
1010
};
1111
stan::test::expect_ad(f_y_a_t0(w, v), y, a, t0);
1212
}
1313

14-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_y_a_w) {
14+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_y_a_w) {
1515
auto f_y_a_w = [](const auto& t0, const auto& v) {
1616
return [&t0, &v](const auto& y, const auto& a, const auto& w) {
17-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
17+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
1818
};
1919
};
2020
stan::test::expect_ad(f_y_a_w(t0, v), y, a, w);
2121
}
2222

23-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_y_a_v) {
23+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_y_a_v) {
2424
auto f_y_a_v = [](const auto& t0, const auto& w) {
2525
return [&t0, &w](const auto& y, const auto& a, const auto& v) {
26-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
26+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
2727
};
2828
};
2929
stan::test::expect_ad(f_y_a_v(t0, w), y, a, v);
3030
}
3131

32-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_y_t0_w) {
32+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_y_t0_w) {
3333
auto f_y_t0_w = [](const auto& a, const auto& v) {
3434
return [&a, &v](const auto& y, const auto& t0, const auto& w) {
35-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
35+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
3636
};
3737
};
3838
stan::test::expect_ad(f_y_t0_w(a, v), y, t0, w);
3939
}
4040

41-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_y_t0_v) {
41+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_y_t0_v) {
4242
auto f_y_t0_v = [](const auto& a, const auto& w) {
4343
return [&a, &w](const auto& y, const auto& t0, const auto& v) {
44-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
44+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
4545
};
4646
};
4747
stan::test::expect_ad(f_y_t0_v(a, w), y, t0, v);

test/unit/math/mix/prob/wiener4_lcdf_defective_2_test.cpp renamed to test/unit/math/mix/prob/wiener4_lccdf_unnorm_2_test.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@
22
#include <test/unit/math/test_ad.hpp>
33
#include <test/unit/math/mix/prob/util.hpp>
44

5-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_y_w_v) {
5+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_y_w_v) {
66
auto f_y_w_v = [](const auto& a, const auto& t0) {
77
return [&a, &t0](const auto& y, const auto& w, const auto& v) {
8-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
8+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
99
};
1010
};
1111
stan::test::expect_ad(f_y_w_v(a, t0), y, w, v);
1212
}
1313

14-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_a_t0_w) {
14+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_a_t0_w) {
1515
auto f_a_t0_w = [](const auto& y, const auto& v) {
1616
return [&y, &v](const auto& a, const auto& t0, const auto& w) {
17-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
17+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
1818
};
1919
};
2020
stan::test::expect_ad(f_a_t0_w(y, v), a, t0, w);
2121
}
2222

23-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_a_t0_v) {
23+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_a_t0_v) {
2424
auto f_a_t0_v = [](const auto& y, const auto& w) {
2525
return [&y, &w](const auto& a, const auto& t0, const auto& v) {
26-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
26+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
2727
};
2828
};
2929
stan::test::expect_ad(f_a_t0_v(y, w), a, t0, v);
3030
}
3131

32-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_a_w_v) {
32+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_a_w_v) {
3333
auto f_a_w_v = [](const auto& y, const auto& t0) {
3434
return [&y, &t0](const auto& a, const auto& w, const auto& v) {
35-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
35+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
3636
};
3737
};
3838
stan::test::expect_ad(f_a_w_v(y, t0), a, w, v);
3939
}
4040

41-
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_t0_w_v) {
41+
TEST_F(Wiener4MixArgs, wiener_lccdf_unnorm_t0_w_v) {
4242
auto f_t0_w_v = [](const auto& y, const auto& a) {
4343
return [&y, &a](const auto& t0, const auto& w, const auto& v) {
44-
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
44+
return stan::math::wiener_lccdf_unnorm(y, a, t0, w, v, 1e-4);
4545
};
4646
};
4747
stan::test::expect_ad(f_t0_w_v(y, a), t0, w, v);

test/unit/math/mix/prob/wiener4_lcdf_defective_0_test.cpp renamed to test/unit/math/mix/prob/wiener4_lcdf_unnorm_0_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TEST(mathMixDouble, wiener4_lcdf) {
77
double t0 = 0.2;
88
double w = 0.5;
99
double v = 1.5;
10-
stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
10+
stan::math::wiener_lcdf_unnorm(y, a, t0, w, v, 1e-4);
1111
}
1212

1313
TEST(mathMixVar, wiener4_lcdf) {
@@ -17,7 +17,7 @@ TEST(mathMixVar, wiener4_lcdf) {
1717
var t0 = 0.2;
1818
var w = 0.5;
1919
var v = 1.5;
20-
stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
20+
stan::math::wiener_lcdf_unnorm(y, a, t0, w, v, 1e-4);
2121
}
2222

2323
TEST(mathMixFVar, wiener4_lcdf) {
@@ -29,5 +29,5 @@ TEST(mathMixFVar, wiener4_lcdf) {
2929
fvar<var> w = 0.5;
3030
fvar<var> v = 1.5;
3131
double error = 1e-4;
32-
stan::math::wiener_lcdf_defective(y, a, t0, w, v, error);
32+
stan::math::wiener_lcdf_unnorm(y, a, t0, w, v, error);
3333
}

0 commit comments

Comments
 (0)