Struct cerebral::neural::NeuralLayer
source · pub struct NeuralLayer {
pub lateral: Array2<f64>,
pub patterns: Array2<f64>,
}
Fields§
§lateral: Array2<f64>
Lateral layer that defines the topology. Can be coordinates or connections (depending on method). Row matrix.
patterns: Array2<f64>
Tuning Patterns the neurons. This is the codebook. Row matrix.
Implementations§
source§impl NeuralLayer
impl NeuralLayer
pub fn new() -> NeuralLayer
Trait Implementations§
source§impl Default for NeuralLayer
impl Default for NeuralLayer
source§fn default() -> NeuralLayer
fn default() -> NeuralLayer
Returns the “default value” for a type. Read more
source§impl Neural for NeuralLayer
impl Neural for NeuralLayer
fn get_lateral(&self) -> &Array2<f64>
fn get_lateral_mut(&mut self) -> &mut Array2<f64>
fn set_lateral(&mut self, lateral: Array2<f64>)
fn get_patterns(&self) -> &Array2<f64>
fn get_patterns_mut(&mut self) -> &mut Array2<f64>
fn set_patterns(&mut self, patterns: Array2<f64>)
Auto Trait Implementations§
impl RefUnwindSafe for NeuralLayer
impl Send for NeuralLayer
impl Sync for NeuralLayer
impl Unpin for NeuralLayer
impl UnwindSafe for NeuralLayer
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