pub struct QuantalRelease {
pub n_sites: usize,
pub release_probability: f64,
pub quantal_size: f64,
pub quantal_variance: f64,
}Expand description
Quantal release model for vesicle fusion.
Models individual vesicle release events with binomial statistics.
Fields§
§n_sites: usizeNumber of release sites (N).
release_probability: f64Release probability per site (p).
quantal_size: f64Quantal size (postsynaptic response per vesicle, pA or mV).
quantal_variance: f64Variance in quantal size.
Implementations§
Source§impl QuantalRelease
impl QuantalRelease
Sourcepub fn new(
n_sites: usize,
release_probability: f64,
quantal_size: f64,
) -> Result<Self>
pub fn new( n_sites: usize, release_probability: f64, quantal_size: f64, ) -> Result<Self>
Create a new quantal release model.
Sourcepub fn expected_release(&self) -> f64
pub fn expected_release(&self) -> f64
Calculate expected number of vesicles released.
Sourcepub fn release_variance(&self) -> f64
pub fn release_variance(&self) -> f64
Calculate variance in number of vesicles released (binomial).
Sourcepub fn expected_amplitude(&self) -> f64
pub fn expected_amplitude(&self) -> f64
Calculate expected postsynaptic response amplitude.
Sourcepub fn coefficient_of_variation(&self) -> f64
pub fn coefficient_of_variation(&self) -> f64
Calculate coefficient of variation (CV) of response.
Trait Implementations§
Source§impl Clone for QuantalRelease
impl Clone for QuantalRelease
Source§fn clone(&self) -> QuantalRelease
fn clone(&self) -> QuantalRelease
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 moreAuto Trait Implementations§
impl Freeze for QuantalRelease
impl RefUnwindSafe for QuantalRelease
impl Send for QuantalRelease
impl Sync for QuantalRelease
impl Unpin for QuantalRelease
impl UnwindSafe for QuantalRelease
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