Mixture Distributions
Examples
use ;
use Mix;
let mut rng = thread_rng;
// Mixture of two distributions
let mix = ;
mix.sample;
// Mixture of three distributions
let mix = ;
mix.sample;
// From iterator over (distribution, weight) pairs
let mix = with_zip
.unwrap;
mix.sample;
License
Copyright 2018 Hidehito Yabuuchi <hdht.ybuc@gmail.com>
Licensed under the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, or the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> at your option. All files in the project carrying such notice may not be copied, modified, or distributed except according to those terms.