pub struct SyntheticConfig {
pub n_compounds: usize,
pub n_qc: usize,
pub n_validate: usize,
pub n_samples: usize,
pub n_batches: usize,
pub batch_offset_magnitude: f64,
pub injection_drift_magnitude: f64,
pub noise_std: f64,
pub biological_signal_std: f64,
pub seed: u64,
}Expand description
Configuration for synthetic dataset generation.
Fields§
§n_compounds: usizeNumber of compounds (rows) in the intensity matrix.
n_qc: usizeNumber of QC samples interleaved throughout the run.
n_validate: usizeNumber of held-out validate samples.
n_samples: usizeNumber of biological study samples.
n_batches: usizeNumber of batches. Samples are divided evenly across batches by injection order.
batch_offset_magnitude: f64Maximum fractional batch offset applied per compound. A value of 0.3 means
batch effects can shift intensity up or down by up to 30%.
injection_drift_magnitude: f64Maximum fractional drift applied linearly across the injection sequence.
A value of 0.2 means intensity can increase by up to 20% from first to last injection.
noise_std: f64Standard deviation of multiplicative noise applied to each measurement.
biological_signal_std: f64Standard deviation of per-compound biological group effects applied to study samples.
seed: u64RNG seed for reproducible dataset generation.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SyntheticConfig
impl Freeze for SyntheticConfig
impl Move for SyntheticConfig
impl RefUnwindSafe for SyntheticConfig
impl Send for SyntheticConfig
impl Sync for SyntheticConfig
impl Unpin for SyntheticConfig
impl UnsafeUnpin for SyntheticConfig
impl UnwindSafe for SyntheticConfig
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> 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 more