Method: Weka::Core::DenseInstance#initialize
- Defined in:
- lib/weka/core/dense_instance.rb
#initialize(data, weight: 1.0) ⇒ DenseInstance
Returns a new instance of DenseInstance.
9 10 11 12 13 14 15 |
# File 'lib/weka/core/dense_instance.rb', line 9 def initialize(data, weight: 1.0) if data.is_a?(Integer) super(data) else super(weight, to_java_double(data)) end end |