Skip to main content

CdfTable

Type Alias CdfTable 

Source
pub type CdfTable<const N: usize, const CTX: usize> = [[u16; N]; CTX];
Expand description

A CDF probability table.

Concrete type: a fixed-size slice-of-arrays. Each row is one context; each column is a cumulative probability threshold in Q15. The final element of every row must equal CDF_PROB_TOP (32768) to form a valid CDF.

The generic parameter N is the alphabet size (number of symbols).