Skip to content

Main content

Arithmetic Code Single Symbol Subinterval Tool

Calculate arithmetic code single symbol subinterval from explicit caller-supplied inputs.

Loading tool…

Description

Scale each cumulative endpoint by current width and add current lower for the next lower and upper bounds.

Arithmetic coding narrows an interval according to cumulative symbol probabilities. Choosing a point or bit budget for that interval differs from implementing a practical integer range coder.

Scale each cumulative endpoint by current width and add current lower for the next lower and upper bounds.

When to use this tool

Use Arithmetic Code Single Symbol Subinterval when you need one ideal interval-update or termination-budget term.

How to use the tool and how it works

  1. Enter lower, upper, cumulativeLower, cumulativeUpper. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read lower, upper. Use the output convention below.

Require ordered current and cumulative intervals within [0, 1]. Scale each cumulative endpoint by current width and add current lower for the next lower and upper bounds.1

Input fieldMeaning and unitsAccepted input
lowerLowerRequired. Finite number; minimum 0.
upperUpperRequired. Finite number; maximum 1.
cumulativeLowerCumulative LowerRequired. Finite number; minimum 0.
cumulativeUpperCumulative UpperRequired. Finite number; maximum 1.
Output fieldInterpretationReturned shape
lowerLowerRequired. Finite number.
upperUpperRequired. Finite number.
json
{
  "input": {
    "lower": 0.25,
    "upper": 0.75,
    "cumulativeLower": 0.25,
    "cumulativeUpper": 0.5
  },
  "output": {
    "lower": 0.375,
    "upper": 0.5
  }
}

Limitations and assumptions

  • This updates one ideal interval using floating point, without coder renormalization, integer range handling, or emitted bits.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use a complete coding implementation with explicit precision, renormalization, and stream-termination rules.

References

  1. Calculation and input contract: information/arithmetic-code-single-symbol-subinterval — tool.io

Similar or alternative tools