Sha256: 83a38d9bc66656fa358cddb32819ad50c6284859fd3967a30aeb8f817839b5f3
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true begin require "matrix" rescue LoadError => error if error.message.match?(/matrix/) $stderr.puts "You don't have matrix installed in your application. Please add it to your Gemfile and run bundle install" raise end end require "rubystats" module Split module Algorithms class << self def beta_distribution_rng(a, b) Rubystats::BetaDistribution.new(a, b).rng end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
split-4.0.2 | lib/split/algorithms.rb |