Class: Cabriolet::Decompressors::Quantum::ModelSymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/cabriolet/decompressors/quantum.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.



47
48
49
50
# File 'lib/cabriolet/decompressors/quantum.rb', line 47

def initialize(sym, cumfreq)
  @sym = sym
  @cumfreq = cumfreq
end

Instance Attribute Details

#cumfreqObject

Returns the value of attribute cumfreq.



45
46
47
# File 'lib/cabriolet/decompressors/quantum.rb', line 45

def cumfreq
  @cumfreq
end

#symObject

Returns the value of attribute sym.



45
46
47
# File 'lib/cabriolet/decompressors/quantum.rb', line 45

def sym
  @sym
end