pub mod scott;
pub mod silverman;
use crate::float::KDEFloat;
pub trait Bandwidth<F: KDEFloat> {
fn bandwidth(&self, data: &[F]) -> F;
}
impl<T, F> Bandwidth<F> for T
where
T: Fn(&[F]) -> F,
F: KDEFloat,
{
fn bandwidth(&self, data: &[F]) -> F {
self(data)
}
}