Skip to content

Commit

Permalink
Merge pull request #19 from aforren1/typos
Browse files Browse the repository at this point in the history
Fix typos in rand functions
  • Loading branch information
kthohr authored May 23, 2020
2 parents 9c14c25 + 23337da commit 9b8cb67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/stats_incl/rand/rpois.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rpois(const T rate_par, const ullint_t seed_val = std::random_device{}());
template<typename mT, typename T1>
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

//
Expand Down
2 changes: 1 addition & 1 deletion include/stats_incl/rand/rt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rt(const T dof_par, const ullint_t seed_val = std::random_device{}());
template<typename mT, typename T1>
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

//
Expand Down
2 changes: 1 addition & 1 deletion include/stats_incl/rand/rt.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

}
Expand Down

0 comments on commit 9b8cb67

Please sign in to comment.