pub struct EnhancedCTW { /* private fields */ }Expand description
Enhanced Context Tree Weighting implementation optimized for blockchain data
Implementations§
Source§impl EnhancedCTW
impl EnhancedCTW
Sourcepub fn with_config(max_depth: usize, alpha: f64, beta: f64) -> Self
pub fn with_config(max_depth: usize, alpha: f64, beta: f64) -> Self
Create with custom parameters
Sourcepub fn adjust_parameters(&mut self, characteristics: &DataCharacteristics)
pub fn adjust_parameters(&mut self, characteristics: &DataCharacteristics)
Adjust parameters based on data characteristics
Sourcepub fn analyze_data(&self, data: &[u8]) -> DataCharacteristics
pub fn analyze_data(&self, data: &[u8]) -> DataCharacteristics
Analyze data characteristics for optimization
Trait Implementations§
Source§impl CompressionStrategy for EnhancedCTW
impl CompressionStrategy for EnhancedCTW
Source§type Error = CompressionError
type Error = CompressionError
The error type produced by this compression strategy
Source§fn metadata(&self) -> CompressionMetadata
fn metadata(&self) -> CompressionMetadata
Returns metadata about this compression algorithm
Source§fn stats(&self) -> CompressionStats
fn stats(&self) -> CompressionStats
Returns the current compression statistics
Auto Trait Implementations§
impl Freeze for EnhancedCTW
impl RefUnwindSafe for EnhancedCTW
impl Send for EnhancedCTW
impl Sync for EnhancedCTW
impl Unpin for EnhancedCTW
impl UnsafeUnpin for EnhancedCTW
impl UnwindSafe for EnhancedCTW
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