pub struct DiffusionConfig {
pub max_iter: usize,
pub sd_tolerance: f64,
pub initial_perturbation: f64,
pub resampling_samples: usize,
}Expand description
Configuration for SDE diffusion parameter optimization.
Fields§
§max_iter: usizeMaximum NelderMead iterations per support point.
Default: 50. Set lower for speed, higher for difficult surfaces.
sd_tolerance: f64Convergence tolerance on simplex standard deviation.
NelderMead stops when the standard deviation of function values across the simplex vertices falls below this threshold. Default: 1e-3.
initial_perturbation: f64Fraction of the distance to the upper bound for simplex construction.
The second simplex vertex is placed at init + perturbation × (upper − init).
This spans the simplex toward the upper bound without overshooting.
Default: 0.15 (for init=0.01, bounds [0,0.5] → vertex at 0.084).
resampling_samples: usizeNumber of resampled evaluations per cost function call.
The SDE particle filter produces noisy likelihood estimates. Averaging over multiple evaluations reduces variance and makes NelderMead decisions reliable by giving every vertex the same precision.
Default: 3. Set to 1 for speed (raw NelderMead), higher for precision.
Trait Implementations§
Source§impl Clone for DiffusionConfig
impl Clone for DiffusionConfig
Source§fn clone(&self) -> DiffusionConfig
fn clone(&self) -> DiffusionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiffusionConfig
impl Debug for DiffusionConfig
Auto Trait Implementations§
impl Freeze for DiffusionConfig
impl RefUnwindSafe for DiffusionConfig
impl Send for DiffusionConfig
impl Sync for DiffusionConfig
impl Unpin for DiffusionConfig
impl UnsafeUnpin for DiffusionConfig
impl UnwindSafe for DiffusionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Context for T
impl<T> Context for T
fn vector_from_element<V>(&self, len: usize, value: <V as VectorCommon>::T) -> Vwhere
V: Vector<C = Self>,
fn vector_from_vec<V>(&self, vec: Vec<<V as VectorCommon>::T>) -> Vwhere
V: Vector<C = Self>,
fn vector_zeros<V>(&self, len: usize) -> Vwhere
V: Vector<C = Self>,
fn dense_mat_zeros<V>(
&self,
rows: usize,
cols: usize,
) -> <V as DefaultDenseMatrix>::Mwhere
V: Vector<C = Self> + DefaultDenseMatrix,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.