Skip to main content

RateBackend

Enum RateBackend 

Source
pub enum RateBackend {
Show 14 variants RosaPlus, Match { hash_bits: usize, min_len: usize, max_len: usize, base_mix: f64, confidence_scale: f64, }, SparseMatch { hash_bits: usize, min_len: usize, max_len: usize, gap_min: usize, gap_max: usize, base_mix: f64, confidence_scale: f64, }, Ppmd { order: usize, memory_mb: usize, }, Mamba { model: Arc<Model>, }, MambaMethod { method: String, }, Rwkv7 { model: Arc<Model>, }, Rwkv7Method { method: String, }, Zpaq { method: String, }, Mixture { spec: Arc<MixtureSpec>, }, Particle { spec: Arc<ParticleSpec>, }, Calibrated { spec: Arc<CalibratedSpec>, }, Ctw { depth: usize, }, FacCtw { base_depth: usize, num_percept_bits: usize, encoding_bits: usize, },
}
Expand description

Sequential entropy/rate backend used by context-aware metrics.

Variants§

§

RosaPlus

ROSA+ suffix-automaton estimator.

§

Match

Local contiguous match predictor.

Fields

§hash_bits: usize

Number of retained hash bits for suffix lookup.

§min_len: usize

Minimum repeat length required before predicting.

§max_len: usize

Maximum repeat length used for confidence scaling.

§base_mix: f64

Residual probability mass left for non-match symbols.

§confidence_scale: f64

Confidence multiplier applied to short-match tapering.

§

SparseMatch

Sparse/gapped local match predictor.

Fields

§hash_bits: usize

Number of retained hash bits for spaced-suffix lookup.

§min_len: usize

Minimum spaced repeat length required before predicting.

§max_len: usize

Maximum spaced repeat length used for confidence scaling.

§gap_min: usize

Minimum gap between matched bytes.

§gap_max: usize

Maximum gap between matched bytes.

§base_mix: f64

Residual probability mass left for non-match symbols.

§confidence_scale: f64

Confidence multiplier applied to short-match tapering.

§

Ppmd

Pure-Rust bounded-memory PPMD-style model.

Fields

§order: usize

Maximum context order.

§memory_mb: usize

Approximate memory budget in MiB.

§

Mamba

Mamba model loaded from explicit weights.

Fields

§model: Arc<Model>

Loaded Mamba model.

§

MambaMethod

Mamba method string (e.g. file:... or cfg:...[;policy:...]) resolved lazily.

Fields

§method: String

Mamba method string.

§

Rwkv7

RWKV7 model loaded from explicit weights.

Fields

§model: Arc<Model>

Loaded RWKV7 model.

§

Rwkv7Method

RWKV7 method string (e.g. file:... or cfg:...[;policy:...]) resolved lazily.

Fields

§method: String

RWKV7 method string.

§

Zpaq

ZPAQ compression-based rate model (streamable methods only).

Fields

§method: String

ZPAQ method string (streamable modes only for rate estimation).

§

Mixture

Online mixture over rate-model experts (Bayes, fading Bayes, switching, MDL).

Fields

§spec: Arc<MixtureSpec>

Mixture expert/runtime specification.

§

Particle

Particle-latent filter ensemble.

Fields

§spec: Arc<ParticleSpec>

Particle filter specification.

§

Calibrated

Calibrated wrapper over another bytewise backend.

Fields

§spec: Arc<CalibratedSpec>

Calibration specification.

§

Ctw

Action-Conditional CTW (single context tree).

Fields

§depth: usize

Context tree depth.

§

FacCtw

Factorized Action-Conditional CTW (k trees for k-bit percepts).

Fields

§base_depth: usize

Base context depth.

§num_percept_bits: usize

Number of percept bits.

§encoding_bits: usize

Encoding width in bits.

Trait Implementations§

Source§

impl Clone for RateBackend

Source§

fn clone(&self) -> RateBackend

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for RateBackend

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.