pub struct MultiVesicularRelease {
pub release_probabilities: Vec<f64>,
pub max_vesicles_per_site: usize,
}Expand description
Multi-vesicular release (MVR) model.
Models the probability of releasing multiple vesicles from a single release site.
Fields§
§release_probabilities: Vec<f64>Probability of releasing 0, 1, 2, … vesicles per site.
max_vesicles_per_site: usizeMaximum number of vesicles per site.
Implementations§
Source§impl MultiVesicularRelease
impl MultiVesicularRelease
Sourcepub fn poisson(mean_vesicles: f64, max_vesicles: usize) -> Self
pub fn poisson(mean_vesicles: f64, max_vesicles: usize) -> Self
Create MVR model with Poisson distribution.
§Arguments
mean_vesicles- Mean number of vesicles released per sitemax_vesicles- Maximum vesicles to consider per site
Sourcepub fn mean_release(&self) -> f64
pub fn mean_release(&self) -> f64
Get mean number of vesicles released per site.
Sourcepub fn probability(&self, k: usize) -> f64
pub fn probability(&self, k: usize) -> f64
Get probability of releasing exactly k vesicles.
Trait Implementations§
Source§impl Clone for MultiVesicularRelease
impl Clone for MultiVesicularRelease
Source§fn clone(&self) -> MultiVesicularRelease
fn clone(&self) -> MultiVesicularRelease
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 MultiVesicularRelease
impl RefUnwindSafe for MultiVesicularRelease
impl Send for MultiVesicularRelease
impl Sync for MultiVesicularRelease
impl Unpin for MultiVesicularRelease
impl UnwindSafe for MultiVesicularRelease
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