RNG-166: LogNormalSamplers to allow a negative mean.
authorAlex Herbert <aherbert@apache.org>
Fri, 1 Oct 2021 18:29:35 +0000 (19:29 +0100)
committerAlex Herbert <aherbert@apache.org>
Fri, 1 Oct 2021 18:29:35 +0000 (19:29 +0100)
commitf46c00179c928f14846323caa9eee3e518fe829a
tree8ef9d29ebfdf5f588f7aa5a20bf0f1ef648eeeed
parentdd671190f39df10fc192cc1bd3e04bcf10553326
RNG-166: LogNormalSamplers to allow a negative mean.

Changes:

- LogNormalSampler
- BoxNormalLogNormalSamplers

Also updated the constructor parameters from shape and scale to mu and
sigma. This matches the wikipedia reference and implementations in
Wolfram.
commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/BoxMullerLogNormalSampler.java
commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LogNormalSampler.java
commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/BoxMullerLogNormalSamplerTest.java
commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/ContinuousSamplersList.java
commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/LogNormalSamplerTest.java
src/changes/changes.xml