From aff7f2758dbbc06debbf9925e6459c40bcbec4f4 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Fri, 29 Mar 2019 07:43:11 +0000 Subject: [PATCH] Address review --- rand_distr/README.md | 7 ++++--- src/distributions/float.rs | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rand_distr/README.md b/rand_distr/README.md index 9a53f8515d7..44e0ff1ca2c 100644 --- a/rand_distr/README.md +++ b/rand_distr/README.md @@ -11,9 +11,10 @@ Implements a full suite of random number distributions sampling routines. This crate is a super-set of the [rand::distributions] module, including support -for sampling from Beta, Cauchy, ChiSquared, Dirichlet, exponential, Fisher F, -Gamma, Log-normal, Normal, Pareto, Poisson, StudentT, Triangular, Circle, -Sphere and Weibull distributions. +for sampling from Beta, Binomial, Cauchy, CircleChiSquared, Dirichlet, exponential, +Fisher F, Gamma, Log-normal, Normal, Pareto, Poisson, StudentT, Triangular and +Weibull distributions, as well as sampling points from the unit circle and unit +sphere surface. It is worth mentioning the [statrs] crate which provides similar functionality along with various support functions, including PDF and CDF computation. In diff --git a/src/distributions/float.rs b/src/distributions/float.rs index 3cff4b88eda..fd40fed93ca 100644 --- a/src/distributions/float.rs +++ b/src/distributions/float.rs @@ -69,6 +69,7 @@ pub struct OpenClosed01; pub struct Open01; +// This trait is needed by both this lib and rand_distr hence is a hidden export #[doc(hidden)] pub trait IntoFloat { type F;