Parameters
- bit
- The symbol to be encoded, must be 0 or 1.
- context
- the context with which to encode the symbol.
Each context has a current MPS and an index describing what the current probability is for the LPS. Each bit is encoded and if the probability of the LPS exceeds .5, the MPS and LPS are switched.