pub fn modify_weights<S: AsRef<str>>(
weights: &Array2<f64>,
status: &[S],
values: &[S],
multipliers: &[f64],
) -> Array2<f64>Expand description
Multiply the weights of every probe (row) whose status equals values[k]
by multipliers[k]. multipliers is recycled when it has length 1.
Returns a new matrix; weights is left unchanged.
Panics if status.len() differs from weights.nrows(), or if
multipliers is neither length 1 nor values.len() — mirroring the
stop() guards in limma.