Struct adjustp::benjamini_yekutieli::BenjaminiYekutieli
source · [−]pub struct BenjaminiYekutieli { /* private fields */ }
Expand description
Performs the Benjamini-Yekutieli step-up procedure
Implementations
sourceimpl BenjaminiYekutieli
impl BenjaminiYekutieli
sourcepub fn adjust(&mut self, pvalue: f64, rank: usize) -> f64
pub fn adjust(&mut self, pvalue: f64, rank: usize) -> f64
Calculates the adjust pvalue given the pvalue and the rank. Keep in mind that this funciton is not deterministic and may give different qvalues for the same call of pvalue depending on the internal state (i.e. if the current max has changed)
sourcepub fn adjust_slice(slice: &[f64]) -> Vec<f64>
pub fn adjust_slice(slice: &[f64]) -> Vec<f64>
Performs the procedure on a slice of floats.
This first sorts the pvalues in a descending order. Then performs the correction using the ascending order ranks. Finally it reindexes the array to return it in the same order as provided.
Auto Trait Implementations
impl RefUnwindSafe for BenjaminiYekutieli
impl Send for BenjaminiYekutieli
impl Sync for BenjaminiYekutieli
impl Unpin for BenjaminiYekutieli
impl UnwindSafe for BenjaminiYekutieli
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more