pub struct NeuronGroup {
pub name: String,
pub n: usize,
pub equations: NeuronEquations,
pub method: IntegrationMethod,
pub state: HashMap<String, Array1<f64>>,
pub last_spike: Array1<f64>,
pub refractory_until: Array1<f64>,
}Expand description
A group of neurons sharing the same equations
Fields§
§name: String§n: usize§equations: NeuronEquations§method: IntegrationMethod§state: HashMap<String, Array1<f64>>State variables for all neurons
last_spike: Array1<f64>Last spike time for each neuron (-inf if never spiked)
refractory_until: Array1<f64>Is neuron currently in refractory period?
Implementations§
Source§impl NeuronGroup
impl NeuronGroup
Trait Implementations§
Source§impl Clone for NeuronGroup
impl Clone for NeuronGroup
Source§fn clone(&self) -> NeuronGroup
fn clone(&self) -> NeuronGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeuronGroup
impl Debug for NeuronGroup
Source§impl<'de> Deserialize<'de> for NeuronGroup
impl<'de> Deserialize<'de> for NeuronGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NeuronGroup
impl RefUnwindSafe for NeuronGroup
impl Send for NeuronGroup
impl Sync for NeuronGroup
impl Unpin for NeuronGroup
impl UnwindSafe for NeuronGroup
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