pub struct EnergyConservationHypothesis {
pub initial_energy: f64,
pub tolerance: f64,
}Expand description
Energy conservation hypothesis.
Tests whether total energy is conserved within tolerance.
Fields§
§initial_energy: f64Initial energy.
tolerance: f64Tolerance for energy drift.
Implementations§
Trait Implementations§
Source§impl Clone for EnergyConservationHypothesis
impl Clone for EnergyConservationHypothesis
Source§fn clone(&self) -> EnergyConservationHypothesis
fn clone(&self) -> EnergyConservationHypothesis
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 EnergyConservationHypothesis
impl Debug for EnergyConservationHypothesis
Source§impl FalsifiableHypothesis for EnergyConservationHypothesis
impl FalsifiableHypothesis for EnergyConservationHypothesis
Source§fn predict(&self, _state: &Self::State) -> Predictions
fn predict(&self, _state: &Self::State) -> Predictions
Generate testable predictions from state.
Source§fn falsification_criteria(&self) -> Vec<FalsificationCriteria>
fn falsification_criteria(&self) -> Vec<FalsificationCriteria>
Define what would falsify this hypothesis.
Source§fn robustness(&self, state: &Self::State) -> f64
fn robustness(&self, state: &Self::State) -> f64
Compute robustness degree (distance to falsification). Read more
Source§fn null_hypothesis_test(
&self,
predictions: &Predictions,
observations: &Observations,
significance: f64,
) -> NHSTResult
fn null_hypothesis_test( &self, predictions: &Predictions, observations: &Observations, significance: f64, ) -> NHSTResult
Perform null hypothesis significance test.
Auto Trait Implementations§
impl Freeze for EnergyConservationHypothesis
impl RefUnwindSafe for EnergyConservationHypothesis
impl Send for EnergyConservationHypothesis
impl Sync for EnergyConservationHypothesis
impl Unpin for EnergyConservationHypothesis
impl UnsafeUnpin for EnergyConservationHypothesis
impl UnwindSafe for EnergyConservationHypothesis
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