Class: NoyesJava::DCT

Inherits:
Object
  • Object
show all
Includes:
JavaFilter
Defined in:
lib/java_impl/dct.rb

Instance Method Summary collapse

Methods included from JavaFilter

#<<, ensure_jarray

Constructor Details

#initialize(order, ncol) ⇒ DCT



6
7
8
# File 'lib/java_impl/dct.rb', line 6

def initialize order, ncol
  @filter = Java::talkhouse.DiscreteCosineTransform.new order, ncol
end

Instance Method Details

#melcosObject



9
10
11
# File 'lib/java_impl/dct.rb', line 9

def melcos
  @filter.melcos.map {|a|a.to_a}
end