pub enum BLQRule {
Zero,
LoqOver2,
Exclude,
Positional,
TmaxRelative {
before_tmax_keep: bool,
after_tmax_keep: bool,
},
}Expand description
BLQ (Below Limit of Quantification) handling rule
Controls how observations marked with Censor::BLOQ are handled
during analysis. Applicable to NCA, AUC calculations, and any
observation-processing pipeline.
Variants§
Zero
Replace BLQ with zero
LoqOver2
Replace BLQ with LOQ/2
Exclude
Exclude BLQ values from analysis
Positional
Position-aware handling (PKNCA default): first=keep(0), middle=drop, last=keep(0)
This is the FDA-recommended approach. It keeps the first BLQ (before tfirst) as 0 to anchor the profile start, drops middle BLQ values (between tfirst and tlast) to avoid deflating AUC, and keeps the last BLQ (at or after tlast) as 0 to define profile end.
TmaxRelative
Tmax-relative handling: different rules before vs after Tmax
Contains (before_tmax_rule, after_tmax_rule).
Each rule can either keep BLQ as 0 or drop it from analysis.
Default PKNCA behavior is before.tmax=drop and after.tmax=keep.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BLQRule
impl<'de> Deserialize<'de> for BLQRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for BLQRule
Auto Trait Implementations§
impl Freeze for BLQRule
impl RefUnwindSafe for BLQRule
impl Send for BLQRule
impl Sync for BLQRule
impl Unpin for BLQRule
impl UnsafeUnpin for BLQRule
impl UnwindSafe for BLQRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Context for T
impl<T> Context for T
fn vector_from_element<V>(&self, len: usize, value: <V as VectorCommon>::T) -> Vwhere
V: Vector<C = Self>,
fn vector_from_vec<V>(&self, vec: Vec<<V as VectorCommon>::T>) -> Vwhere
V: Vector<C = Self>,
fn vector_zeros<V>(&self, len: usize) -> Vwhere
V: Vector<C = Self>,
fn dense_mat_zeros<V>(
&self,
rows: usize,
cols: usize,
) -> <V as DefaultDenseMatrix>::Mwhere
V: Vector<C = Self> + DefaultDenseMatrix,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.