pub struct ValidationConfig {
pub samples: usize,
pub seed: u32,
pub strict_monotonicity: bool,
pub strict_convexity: bool,
pub epsilon: f64,
pub tolerance: f64,
pub continuity_threshold: f64,
pub validate: bool,
}Expand description
Configurable options for the Axioms of Rationality validations.
Fields§
§samples: usizeNumber of Sobol sequence points to sample for the rationality checks.
seed: u32Seed for the Sobol sequence scrambling.
strict_monotonicity: boolWhether to enforce strict monotonicity (U(x + ep) > U(x)).
If false, requires weak monotonicity (U(x + ep) >= U(x)).
strict_convexity: boolWhether to enforce strict convexity (U(midpoint) > min(U(A), U(B))).
If false, requires weak convexity (U(midpoint) >= min(U(A), U(B))).
epsilon: f64The small increment used to compute directional changes (e.g. 1e-6).
tolerance: f64Numerical tolerance for floating-point comparisons (e.g. 1e-9).
continuity_threshold: f64The threshold marginal utility (d_epsilon -> d_U) for a continuous function.
validate: boolWhether to validate the Axioms of Rationality upon construction.
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 moreSource§impl Debug for ValidationConfig
impl Debug for ValidationConfig
Auto Trait Implementations§
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnsafeUnpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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