Method: Statsample::Factor::MAP#initialize
- Defined in:
- lib/statsample/factor/map.rb
#initialize(matrix, opts = Hash.new) ⇒ MAP
Returns a new instance of MAP.
56 57 58 59 60 61 62 63 64 |
# File 'lib/statsample/factor/map.rb', line 56 def initialize(matrix, opts=Hash.new) @matrix=matrix opts_default={ :use_gsl=>true, :name=>_("Velicer's MAP") } @opts=opts_default.merge(opts) opts_default.keys.each {|k| send("#{k}=", @opts[k]) } end |