Sha256: 1c3ebb5be420051ff2b18c35c355ad8b1b3802cf77f9f3b5d6b0a506ccd37eaf

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

#
# Base class of multivariate probability distribution
# Currently, this class only supports sampling feature.
#
class Distrb::Multivariate::Distribution
  def sampler
    raise NotImplementedError
  end

  def sample
    self.sampler.sample
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
distrb-0.1.1 lib/distrb/multivariate/distribution.rb