Skip to content

Commit 062d304

Browse files
authored
Merge pull request #3258 from Franzi2114/feature/issue-3256-renaming-cdf-defective
New name wiener_lc(c)df_defective
2 parents b0e4883 + 6eac09e commit 062d304

File tree

48 files changed

+1101
-1053
lines changed

Some content is hidden

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

48 files changed

+1101
-1053
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.hpp>
315-
#include <stan/math/prim/prob/wiener4_lccdf.hpp>
314+
#include <stan/math/prim/prob/wiener4_lcdf_defective.hpp>
315+
#include <stan/math/prim/prob/wiener4_lccdf_defective.hpp>
316316
#include <stan/math/prim/prob/wiener_full_lpdf.hpp>
317-
#include <stan/math/prim/prob/wiener_full_lcdf.hpp>
318-
#include <stan/math/prim/prob/wiener_full_lccdf.hpp>
317+
#include <stan/math/prim/prob/wiener_full_lcdf_defective.hpp>
318+
#include <stan/math/prim/prob/wiener_full_lccdf_defective.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.hpp renamed to stan/math/prim/prob/wiener4_lccdf_defective.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_HPP
2-
#define STAN_MATH_PRIM_PROB_WIENER4_LCCDF_HPP
1+
#ifndef STAN_MATH_PRIM_PROB_WIENER4_LCCDF_DEFECTIVE_HPP
2+
#define STAN_MATH_PRIM_PROB_WIENER4_LCCDF_DEFECTIVE_HPP
33

4-
#include <stan/math/prim/prob/wiener4_lcdf.hpp>
4+
#include <stan/math/prim/prob/wiener4_lcdf_defective.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(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) {
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) {
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_if_t<!is_constant<T_y>::value, T_y>;

stan/math/prim/prob/wiener4_lcdf.hpp renamed to stan/math/prim/prob/wiener4_lcdf_defective.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_HPP
2-
#define STAN_MATH_PRIM_PROB_WIENER4_LCDF_HPP
1+
#ifndef STAN_MATH_PRIM_PROB_WIENER4_LCDF_DEFECTIVE_HPP
2+
#define STAN_MATH_PRIM_PROB_WIENER4_LCDF_DEFECTIVE_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(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_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) {
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_if_t<!is_constant<T_y>::value, T_y>;
594594
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;

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

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

4-
#include <stan/math/prim/prob/wiener4_lccdf.hpp>
5-
#include <stan/math/prim/prob/wiener_full_lcdf.hpp>
4+
#include <stan/math/prim/prob/wiener4_lccdf_defective.hpp>
5+
#include <stan/math/prim/prob/wiener_full_lcdf_defective.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(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_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) {
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_if_t<!is_constant<T_y>::value, T_y>;
9393
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
@@ -124,7 +124,7 @@ inline auto wiener_lccdf(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";
127+
static constexpr const char* function_name = "wiener_lccdf_defective";
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,8 +211,9 @@ inline auto wiener_lccdf(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<propto>(y_vec[i], a_vec[i], t0_vec[i], w_vec[i],
215-
v_vec[i], precision_derivatives);
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);
216217
continue;
217218
}
218219
const T_partials_return y_value = y_vec.val(i);

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

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

4-
#include <stan/math/prim/prob/wiener4_lcdf.hpp>
4+
#include <stan/math/prim/prob/wiener4_lcdf_defective.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(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_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) {
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_if_t<!is_constant<T_y>::value, T_y>;
269269
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
@@ -300,7 +300,7 @@ inline auto wiener_lcdf(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";
303+
static constexpr const char* function_name = "wiener_lcdf_defective";
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,8 +387,9 @@ inline auto wiener_lcdf(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<propto>(y_vec[i], a_vec[i], t0_vec[i], w_vec[i],
391-
v_vec[i], precision_derivatives);
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);
392393
continue;
393394
}
394395
const T_partials_return y_value = y_vec.val(i);

test/unit/math/mix/prob/wiener4_lccdf_0_test.cpp renamed to test/unit/math/mix/prob/wiener4_lccdf_defective_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(y, a, t0, w, v, 1e-4);
10+
stan::math::wiener_lccdf_defective(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(y, a, t0, w, v, 1e-4);
20+
stan::math::wiener_lccdf_defective(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(y, a, t0, w, v, error);
32+
stan::math::wiener_lccdf_defective(y, a, t0, w, v, error);
3333
}

test/unit/math/mix/prob/wiener4_lcdf_1_test.cpp renamed to test/unit/math/mix/prob/wiener4_lccdf_defective_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_y_a_t0) {
5+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
8+
return stan::math::wiener_lccdf_defective(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_y_a_w) {
14+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
17+
return stan::math::wiener_lccdf_defective(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_y_a_v) {
23+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
26+
return stan::math::wiener_lccdf_defective(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_y_t0_w) {
32+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
35+
return stan::math::wiener_lccdf_defective(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_y_t0_v) {
41+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
44+
return stan::math::wiener_lccdf_defective(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_2_test.cpp renamed to test/unit/math/mix/prob/wiener4_lccdf_defective_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_y_w_v) {
5+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
8+
return stan::math::wiener_lccdf_defective(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_a_t0_w) {
14+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
17+
return stan::math::wiener_lccdf_defective(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_a_t0_v) {
23+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
26+
return stan::math::wiener_lccdf_defective(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_a_w_v) {
32+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
35+
return stan::math::wiener_lccdf_defective(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_t0_w_v) {
41+
TEST_F(Wiener4MixArgs, wiener_lccdf_defective_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(y, a, t0, w, v, 1e-4);
44+
return stan::math::wiener_lccdf_defective(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_0_test.cpp renamed to test/unit/math/mix/prob/wiener4_lcdf_defective_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(y, a, t0, w, v, 1e-4);
10+
stan::math::wiener_lcdf_defective(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(y, a, t0, w, v, 1e-4);
20+
stan::math::wiener_lcdf_defective(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(y, a, t0, w, v, error);
32+
stan::math::wiener_lcdf_defective(y, a, t0, w, v, error);
3333
}

test/unit/math/mix/prob/wiener4_lccdf_1_test.cpp renamed to test/unit/math/mix/prob/wiener4_lcdf_defective_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_lccdf_y_a_t0) {
5+
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_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_lccdf(y, a, t0, w, v, 1e-4);
8+
return stan::math::wiener_lcdf_defective(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_lccdf_y_a_w) {
14+
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_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_lccdf(y, a, t0, w, v, 1e-4);
17+
return stan::math::wiener_lcdf_defective(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_lccdf_y_a_v) {
23+
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_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_lccdf(y, a, t0, w, v, 1e-4);
26+
return stan::math::wiener_lcdf_defective(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_lccdf_y_t0_w) {
32+
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_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_lccdf(y, a, t0, w, v, 1e-4);
35+
return stan::math::wiener_lcdf_defective(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_lccdf_y_t0_v) {
41+
TEST_F(Wiener4MixArgs, wiener_lcdf_defective_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_lccdf(y, a, t0, w, v, 1e-4);
44+
return stan::math::wiener_lcdf_defective(y, a, t0, w, v, 1e-4);
4545
};
4646
};
4747
stan::test::expect_ad(f_y_t0_v(a, w), y, t0, v);

0 commit comments

Comments
 (0)