[][src]Struct rusticsom::SOM

pub struct SOM { /* fields omitted */ }

Methods

impl SOM[src]

pub fn create(
    length: usize,
    breadth: usize,
    inputs: usize,
    randomize: bool,
    learning_rate: Option<f32>,
    sigma: Option<f32>,
    decay_function: Option<fn(_: f32, _: u32, _: u32) -> f64>,
    neighbourhood_function: Option<fn(_: (usize, usize), _: (usize, usize), _: f32) -> Array2<f64>>
) -> SOM
[src]

pub fn winner(&mut self, elem: Array1<f64>) -> (usize, usize)[src]

pub fn from_json(
    serialized: &str,
    decay_function: Option<fn(_: f32, _: u32, _: u32) -> f64>,
    neighbourhood_function: Option<fn(_: (usize, usize), _: (usize, usize), _: f32) -> Array2<f64>>
) -> Result<SOM>
[src]

pub fn to_json(&self) -> Result<String>[src]

pub fn train_random(&mut self, data: Array2<f64>, iterations: u32)[src]

pub fn train_batch(&mut self, data: Array2<f64>, iterations: u32)[src]

pub fn activation_response(&self) -> ArrayView2<usize>[src]

pub fn winner_dist(&mut self, elem: Array1<f64>) -> ((usize, usize), f64)[src]

pub fn get_size(&self) -> (usize, usize)[src]

pub fn distance_map(&self) -> Array2<f64>[src]

Trait Implementations

impl Display for SOM[src]

Auto Trait Implementations

impl RefUnwindSafe for SOM

impl Send for SOM

impl Sync for SOM

impl Unpin for SOM

impl UnwindSafe for SOM

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.