pub struct WeightedChiSquareTerm {
pub weight: f64,
pub degrees_of_freedom: f64,
}Expand description
One λ_j · χ²_{h_j} term of a linear combination of independent
chi-squares, with the weight’s SIGN and the term’s degrees of freedom both
carried explicitly.
Two things separate this from the &[f64] weight list
weighted_chi_square_sf takes, and each of them is a distribution the
one-degree-of-freedom non-negative form cannot express:
- A negative weight makes a RATIO a tail.
P(A/B > t)for independent non-negativeA,BisP(A − tB > 0), so every F-shaped reference — any statistic whose scale was estimated from the same data — is a signed combination evaluated at zero. The classicalF_{a,b}is the two-term caseλ = (1, −t·a/b),h = (a, b). - A multiplicity is not
hcopies of a weight. It is, mathematically, but the Imhof integrand costs oneatanand onelnper TERM, and a residual sum of squares carriesn − punit weights. Folding them into one term withh = n − pis what makes ann-sized reference cost the same as ap-sized one.
Fields§
§weight: f64λ_j, of either sign. A zero weight contributes nothing and is dropped.
degrees_of_freedom: f64h_j > 0. Real rather than integral: a two-moment summary of a spectrum
is a chi-square with a fractional shape, and this type is what carries it.
Trait Implementations§
Source§impl Clone for WeightedChiSquareTerm
impl Clone for WeightedChiSquareTerm
Source§fn clone(&self) -> WeightedChiSquareTerm
fn clone(&self) -> WeightedChiSquareTerm
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 moreimpl Copy for WeightedChiSquareTerm
Source§impl Debug for WeightedChiSquareTerm
impl Debug for WeightedChiSquareTerm
Source§impl PartialEq for WeightedChiSquareTerm
impl PartialEq for WeightedChiSquareTerm
impl StructuralPartialEq for WeightedChiSquareTerm
Auto Trait Implementations§
impl Freeze for WeightedChiSquareTerm
impl RefUnwindSafe for WeightedChiSquareTerm
impl Send for WeightedChiSquareTerm
impl Sync for WeightedChiSquareTerm
impl Unpin for WeightedChiSquareTerm
impl UnsafeUnpin for WeightedChiSquareTerm
impl UnwindSafe for WeightedChiSquareTerm
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,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.