-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the
IndependentSample
trait with Distribution
.
Also removed the `Sample` trait. `IndependentSample` is really a probability distribution of values, and hence renamed to `Distribution`, but with an associated `Output` type instead of being generic over a type. The `Sample` trait is a state-mutating version of `IndependentSample` and is really a random process. A random process can be infinite (e.g. a random walk) or finite (e.g. drawing from a bag without replacement). So really, a random process is best represented by an `Iterator`. Additionally all previous implementations of `Sample` simply called through to `IndependentSample.ind_sample`, so `Sample` has simply been removed. The related trait `SampleRange` has been renamed to `RangeDistribution`.
- Loading branch information
1 parent
0b8c3eb
commit 6e30259
Showing
6 changed files
with
137 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.