Skip to content

Commit 38bcb2b

Browse files
authored
Merge pull request #2640 from stan-dev/von_mises_cdf
Add missing deprecated cdf sigs
2 parents 40e2a30 + d306984 commit 38bcb2b

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

stan/math/prim/prob.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@
347347
#include <stan/math/prim/prob/von_mises_log.hpp>
348348
#include <stan/math/prim/prob/von_mises_lpdf.hpp>
349349
#include <stan/math/prim/prob/von_mises_rng.hpp>
350+
#include <stan/math/prim/prob/von_mises_ccdf_log.hpp>
350351
#include <stan/math/prim/prob/von_mises_cdf.hpp>
352+
#include <stan/math/prim/prob/von_mises_cdf_log.hpp>
351353
#include <stan/math/prim/prob/von_mises_lcdf.hpp>
352354
#include <stan/math/prim/prob/von_mises_lccdf.hpp>
353355
#include <stan/math/prim/prob/weibull_ccdf_log.hpp>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#ifndef STAN_MATH_PRIM_PROB_VON_MISES_CCDF_LOG_HPP
2+
#define STAN_MATH_PRIM_PROB_VON_MISES_CCDF_LOG_HPP
3+
4+
#include <stan/math/prim/prob/von_mises_lccdf.hpp>
5+
#include <cmath>
6+
7+
namespace stan {
8+
namespace math {
9+
10+
/** \ingroup prob_dists
11+
* @deprecated use <code>von_mises_lccdf</code>
12+
*/
13+
template <typename T_x, typename T_mu, typename T_k>
14+
inline return_type_t<T_x, T_mu, T_k> von_mises_ccdf_log(const T_x& x,
15+
const T_mu& mu,
16+
const T_k& k) {
17+
return von_mises_lccdf<T_x, T_mu, T_k>(x, mu, k);
18+
}
19+
20+
} // namespace math
21+
} // namespace stan
22+
23+
#endif
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#ifndef STAN_MATH_PRIM_PROB_VON_MISES_CDF_LOG_HPP
2+
#define STAN_MATH_PRIM_PROB_VON_MISES_CDF_LOG_HPP
3+
4+
#include <stan/math/prim/prob/von_mises_lcdf.hpp>
5+
#include <cmath>
6+
7+
namespace stan {
8+
namespace math {
9+
10+
/** \ingroup prob_dists
11+
* @deprecated use <code>von_mises_lcdf</code>
12+
*/
13+
template <typename T_x, typename T_mu, typename T_k>
14+
inline return_type_t<T_x, T_mu, T_k> von_mises_cdf_log(const T_x& x,
15+
const T_mu& mu,
16+
const T_k& k) {
17+
return von_mises_lcdf<T_x, T_mu, T_k>(x, mu, k);
18+
}
19+
20+
} // namespace math
21+
} // namespace stan
22+
23+
#endif

0 commit comments

Comments
 (0)