Class: Cabriolet::QuantumShared::ModelSymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/cabriolet/quantum_shared.rb

Overview

Represents a symbol in an arithmetic coding model

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cumfreqObject

Returns the value of attribute cumfreq.



40
41
42
# File 'lib/cabriolet/quantum_shared.rb', line 40

def cumfreq
  @cumfreq
end

#symObject

Returns the value of attribute sym.



40
41
42
# File 'lib/cabriolet/quantum_shared.rb', line 40

def sym
  @sym
end