-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Taking the code sample below, the maximum sample is always below 5.0.
use kernel_density_estimation::prelude::*;
fn main() {
let observations: Vec<f32> = vec![4.99,5.0,5.01];
let kde=KernelDensityEstimator::new(observations,Scott,Normal);
let pdf_dataset: Vec<f32> = (0..101).into_iter().map(|x| x as f32 * 0.1).collect();
let sample=kde.sample(pdf_dataset.as_slice(),10000);
println!("{:?}",sample);
}
Metadata
Metadata
Assignees
Labels
No labels