#[non_exhaustive]pub enum CompressionAlgorithm {
Interpolation,
InterpolationLorenzo,
LorenzoRegression {
lorenzo: bool,
lorenzo_second_order: bool,
regression: bool,
},
BiologyMolecularData,
BiologyMolecularDataGromacsXtc,
NoPrediction,
Lossless,
}Expand description
Which prediction algorithm SZ3 should use during compression.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Interpolation
InterpolationLorenzo
LorenzoRegression
BiologyMolecularData
BiologyMolecularDataGromacsXtc
NoPrediction
Lossless
Implementations§
Source§impl CompressionAlgorithm
impl CompressionAlgorithm
Sourcepub fn interpolation() -> Self
pub fn interpolation() -> Self
Pure interpolation predictor.
Sourcepub fn interpolation_lorenzo() -> Self
pub fn interpolation_lorenzo() -> Self
Interpolation with Lorenzo fallback (the default).
Sourcepub fn lorenzo_regression() -> Self
pub fn lorenzo_regression() -> Self
Lorenzo + regression predictor with default sub-flags.
Sourcepub fn lorenzo_regression_custom(
lorenzo: Option<bool>,
lorenzo_second_order: Option<bool>,
regression: Option<bool>,
) -> Self
pub fn lorenzo_regression_custom( lorenzo: Option<bool>, lorenzo_second_order: Option<bool>, regression: Option<bool>, ) -> Self
Lorenzo + regression predictor with individually overridable sub-flags.
Sourcepub fn biology_molecular_data() -> Self
pub fn biology_molecular_data() -> Self
Predictor optimised for molecular-dynamics data.
Sourcepub fn biology_molecular_data_gromacs_xtc() -> Self
pub fn biology_molecular_data_gromacs_xtc() -> Self
Predictor optimised for GROMACS XTC molecular-dynamics data.
Sourcepub fn no_prediction() -> Self
pub fn no_prediction() -> Self
Skip prediction entirely; only quantise and encode.
Trait Implementations§
Source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
Source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 CompressionAlgorithm
impl Debug for CompressionAlgorithm
Source§impl Default for CompressionAlgorithm
impl Default for CompressionAlgorithm
impl Copy for CompressionAlgorithm
Auto Trait Implementations§
impl Freeze for CompressionAlgorithm
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnsafeUnpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
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