pub struct FalsifiableHypothesis {
pub id: String,
pub null_hypothesis: String,
pub threshold: f32,
pub actual: Option<f32>,
pub confidence_interval: Option<ConfidenceInterval>,
pub falsification_conditions: Vec<FalsificationCondition>,
pub falsifiability_score: f32,
pub falsified: bool,
}Expand description
A falsifiable hypothesis about pixel coverage (full Popperian specification)
Fields§
§id: StringHypothesis ID (e.g., “H0-COV-01”)
null_hypothesis: StringH₀: The null hypothesis to falsify
threshold: f32Measurable threshold (falsification criterion)
actual: Option<f32>Actual measured value
confidence_interval: Option<ConfidenceInterval>Confidence interval for statistical rigor
falsification_conditions: Vec<FalsificationCondition>What would falsify this claim
falsifiability_score: f32Falsifiability score (0-25, gate requires >= 15)
falsified: boolWhether the hypothesis has been falsified
Implementations§
Source§impl FalsifiableHypothesis
impl FalsifiableHypothesis
Sourcepub fn builder(id: &str) -> FalsifiableHypothesisBuilder
pub fn builder(id: &str) -> FalsifiableHypothesisBuilder
Create a new hypothesis builder
Sourcepub fn coverage_threshold(id: &str, threshold: f32) -> Self
pub fn coverage_threshold(id: &str, threshold: f32) -> Self
Create a standard coverage threshold hypothesis
Sourcepub fn max_gap_size(id: &str, max_gap_percent: f32) -> Self
pub fn max_gap_size(id: &str, max_gap_percent: f32) -> Self
Create a gap size hypothesis
Sourcepub fn ssim_threshold(id: &str, min_ssim: f32) -> Self
pub fn ssim_threshold(id: &str, min_ssim: f32) -> Self
Create an SSIM threshold hypothesis
Sourcepub fn evaluate(&self, actual: f32) -> FalsifiableHypothesis
pub fn evaluate(&self, actual: f32) -> FalsifiableHypothesis
Evaluate the hypothesis with actual measurement
Trait Implementations§
Source§impl Clone for FalsifiableHypothesis
impl Clone for FalsifiableHypothesis
Source§fn clone(&self) -> FalsifiableHypothesis
fn clone(&self) -> FalsifiableHypothesis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FalsifiableHypothesis
impl RefUnwindSafe for FalsifiableHypothesis
impl Send for FalsifiableHypothesis
impl Sync for FalsifiableHypothesis
impl Unpin for FalsifiableHypothesis
impl UnsafeUnpin for FalsifiableHypothesis
impl UnwindSafe for FalsifiableHypothesis
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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