colgreen / Redzen

General purpose C# code library.
Other
95 stars 16 forks source link

Functionally separate distribution representation from sampling #3

Closed colgreen closed 6 years ago

colgreen commented 6 years ago

The various distribution classes all currently wrap an inner IRandomSource in order to provide methods for sampling from the distribution(s). A cleaner pattern is to have distribution classes that represent the distribution only, and distribution sampler classes (and/or utility methods) that sample from them.

In addition, the distribution classes in the Redzen.Random namespace should probably be moved in the Redzen.Numerics namespace.

colgreen commented 6 years ago

Resolved by commit 421e6bf6367b9c6de72427e48af1b1a9b24b3654