From 23337da41891edb8812f2b70cd3549e73292c10d Mon Sep 17 00:00:00 2001 From: Alex Forrence Date: Thu, 21 May 2020 11:42:29 -0400 Subject: [PATCH] Typos rt & rpois had incorrect function names for vectorized output, and rt_compute called rt instead of rchisq --- include/stats_incl/rand/rpois.hpp | 2 +- include/stats_incl/rand/rt.hpp | 2 +- include/stats_incl/rand/rt.ipp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stats_incl/rand/rpois.hpp b/include/stats_incl/rand/rpois.hpp index 4f7c93b..ed5a7b6 100644 --- a/include/stats_incl/rand/rpois.hpp +++ b/include/stats_incl/rand/rpois.hpp @@ -45,7 +45,7 @@ rpois(const T rate_par, const ullint_t seed_val = std::random_device{}()); template statslib_inline mT -rexp(const ullint_t n, const ullint_t k, const T1 rate_par); +rpois(const ullint_t n, const ullint_t k, const T1 rate_par); #endif // diff --git a/include/stats_incl/rand/rt.hpp b/include/stats_incl/rand/rt.hpp index f8f8302..26f6caa 100644 --- a/include/stats_incl/rand/rt.hpp +++ b/include/stats_incl/rand/rt.hpp @@ -45,7 +45,7 @@ rt(const T dof_par, const ullint_t seed_val = std::random_device{}()); template statslib_inline mT -rchisq(const ullint_t n, const ullint_t k, const T1 dof_par); +rt(const ullint_t n, const ullint_t k, const T1 dof_par); #endif // diff --git a/include/stats_incl/rand/rt.ipp b/include/stats_incl/rand/rt.ipp index d6aa3fb..a545676 100644 --- a/include/stats_incl/rand/rt.ipp +++ b/include/stats_incl/rand/rt.ipp @@ -41,7 +41,7 @@ rt_compute(const T dof_par, rand_engine_t& engine) T numer = rnorm(T(0),T(1),engine); - return numer / std::sqrt( rt(dof_par,engine) / dof_par ); + return numer / std::sqrt( rchisq(dof_par,engine) / dof_par ); } }