Class: Cabriolet::QuantumShared::ModelSymbol
- Inherits:
-
Object
- Object
- Cabriolet::QuantumShared::ModelSymbol
- Defined in:
- lib/cabriolet/quantum_shared.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.
42 43 44 45 |
# File 'lib/cabriolet/quantum_shared.rb', line 42 def initialize(sym, cumfreq) @sym = sym @cumfreq = cumfreq end |
Instance Attribute Details
#cumfreq ⇒ Object
Returns the value of attribute cumfreq.
40 41 42 |
# File 'lib/cabriolet/quantum_shared.rb', line 40 def cumfreq @cumfreq end |
#sym ⇒ Object
Returns the value of attribute sym.
40 41 42 |
# File 'lib/cabriolet/quantum_shared.rb', line 40 def sym @sym end |