pub struct MetricRegularityChecker {
pub radius: f64,
pub num_tests: usize,
pub tol: f64,
}Expand description
Checks metric regularity properties of a mapping at a point.
Fields§
§radius: f64Perturbation radius for numerical testing.
num_tests: usizeNumber of test perturbations.
tol: f64Tolerance for regularity bound checks.
Implementations§
Source§impl MetricRegularityChecker
impl MetricRegularityChecker
Sourcepub fn estimate_modulus(
&self,
f: impl Fn(&[f64]) -> Vec<f64>,
x0: &[f64],
y0: &[f64],
domain_samples: &[Vec<f64>],
) -> f64
pub fn estimate_modulus( &self, f: impl Fn(&[f64]) -> Vec<f64>, x0: &[f64], y0: &[f64], domain_samples: &[Vec<f64>], ) -> f64
Estimate the metric regularity modulus κ of F at (x₀, y₀): κ ≈ sup_{(x,y) near (x₀,y₀)} d(x, F⁻¹(y)) / d(y, F(x)).
Here F is represented as f: &[f64] -> Vec<f64> and F⁻¹(y) is approximated
by the preimage computed via nearest-point search.
Auto Trait Implementations§
impl Freeze for MetricRegularityChecker
impl RefUnwindSafe for MetricRegularityChecker
impl Send for MetricRegularityChecker
impl Sync for MetricRegularityChecker
impl Unpin for MetricRegularityChecker
impl UnsafeUnpin for MetricRegularityChecker
impl UnwindSafe for MetricRegularityChecker
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