pub struct AgentDiffusion {
pub config: AgentDiffusionConfig,
pub state: AgentState,
}Fields§
§config: AgentDiffusionConfig§state: AgentStateImplementations§
Source§impl AgentDiffusion
impl AgentDiffusion
pub fn new(config: AgentDiffusionConfig) -> Self
pub fn new_random(config: AgentDiffusionConfig, spread: f64) -> Self
pub fn brownian_step(&mut self)
pub fn run_brownian(&mut self)
pub fn heat_kernel(&self, i: usize, j: usize, t: f64) -> f64
pub fn estimate_drift_diffusion( &self, trajectories: &[Vec<Vec<f64>>], ) -> Vec<DriftDiffusionDecomposition>
pub fn hmc_sample( &self, hmc_config: &HMCConfig, potential: &dyn PotentialEnergy, ) -> HMCResult
pub fn levy_flight( &self, _agent_idx: usize, alpha: f64, n_steps: usize, ) -> LevyFlight
pub fn spectral_decomposition( &self, adjacency: &DMatrix<f64>, ) -> Result<SpectralDecomposition, String>
pub fn position_distribution( &self, dim: usize, n_bins: usize, range: (f64, f64), ) -> DiscreteDistribution
pub fn covariance_tensor(&self) -> DiffusionTensor
pub fn mean_position(&self) -> Vec<f64>
pub fn mean_squared_displacement(&self) -> f64
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for AgentDiffusion
impl RefUnwindSafe for AgentDiffusion
impl Send for AgentDiffusion
impl Sync for AgentDiffusion
impl Unpin for AgentDiffusion
impl UnsafeUnpin for AgentDiffusion
impl UnwindSafe for AgentDiffusion
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.