pub struct ProjectionParams {
pub target_p: f64,
pub frame_step_size: f64,
pub scan_step_size: f64,
pub n_steps: Option<usize>,
pub remove_epsilon: f64,
pub num_threads: usize,
pub num_decimals: u32,
}Expand description
Parameters the projector needs to reproduce / improve the legacy distribution
jobs. Defaults mirror the simulator’s config defaults (target_p=0.999,
sampling_step_size=0.001, scan step 0.0001, n_steps=1000,
remove_epsilon=1e-4).
Fields§
§target_p: f64§frame_step_size: f64§scan_step_size: f64§n_steps: Option<usize>§remove_epsilon: f64§num_threads: usize§num_decimals: u32Decimal places the legacy / project_distributions writer rounds stored
abundances to (python_list_to_json_string num_decimals, default 4).
LegacyCompat rounds to this so projector-fed rendering byte-matches the
columns a DB was written with. Accurate ignores it (full precision).
Trait Implementations§
Source§impl Clone for ProjectionParams
impl Clone for ProjectionParams
Source§fn clone(&self) -> ProjectionParams
fn clone(&self) -> ProjectionParams
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 moreSource§impl Debug for ProjectionParams
impl Debug for ProjectionParams
Source§impl Default for ProjectionParams
impl Default for ProjectionParams
impl Copy for ProjectionParams
Auto Trait Implementations§
impl Freeze for ProjectionParams
impl RefUnwindSafe for ProjectionParams
impl Send for ProjectionParams
impl Sync for ProjectionParams
impl Unpin for ProjectionParams
impl UnsafeUnpin for ProjectionParams
impl UnwindSafe for ProjectionParams
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,
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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.