Class: Cabriolet::Compressors::Quantum::ModelSymbol
- Inherits:
-
Object
- Object
- Cabriolet::Compressors::Quantum::ModelSymbol
- Defined in:
- lib/cabriolet/compressors/quantum.rb
Overview
Represents a symbol in an arithmetic coding model
Instance Attribute Summary collapse
-
#cumfreq ⇒ Object
Returns the value of attribute cumfreq.
-
#sym ⇒ Object
Returns the value of attribute sym.
Instance Method Summary collapse
-
#initialize(sym, cumfreq) ⇒ ModelSymbol
constructor
A new instance of ModelSymbol.
Constructor Details
#initialize(sym, cumfreq) ⇒ ModelSymbol
Returns a new instance of ModelSymbol.
56 57 58 59 |
# File 'lib/cabriolet/compressors/quantum.rb', line 56 def initialize(sym, cumfreq) @sym = sym @cumfreq = cumfreq end |
Instance Attribute Details
#cumfreq ⇒ Object
Returns the value of attribute cumfreq.
54 55 56 |
# File 'lib/cabriolet/compressors/quantum.rb', line 54 def cumfreq @cumfreq end |
#sym ⇒ Object
Returns the value of attribute sym.
54 55 56 |
# File 'lib/cabriolet/compressors/quantum.rb', line 54 def sym @sym end |