pub struct Kde {
pub data: [u32; 16384],
pub points: Vec<(f32, f32)>,
pub kde: [f32; 16384],
pub densest_points: BTreeSet<usize>,
pub x_min: f32,
pub x_max: f32,
pub y_min: f32,
pub y_max: f32,
pub radius: f32,
}Fields§
§data: [u32; 16384]§points: Vec<(f32, f32)>§kde: [f32; 16384]§densest_points: BTreeSet<usize>§x_min: f32§x_max: f32§y_min: f32§y_max: f32§radius: f32Implementations§
Source§impl Kde
impl Kde
pub fn new(vec: &[u32; 16384]) -> Kde
pub fn clear(&mut self)
pub fn build_points(&mut self)
pub fn determine_kde_params(&mut self) -> Option<()>
pub fn calculate_kde(&mut self)
pub fn determine_densest_points(&mut self)
pub fn fit_kde(&mut self)
pub fn get_kde_data(&self) -> [u32; 16384]
pub fn run(&mut self)
Auto Trait Implementations§
impl Freeze for Kde
impl RefUnwindSafe for Kde
impl Send for Kde
impl Sync for Kde
impl Unpin for Kde
impl UnwindSafe for Kde
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more