Skip to content
class extensions for ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
dxk-array_ext.rb

README.md

dxk-ruby-ext

class extensions for ruby

  • dxk-array_ext: extensions for Array
    • .cdf - cumulative distribution function (cumulative sum + normalization)
      • args : optional scaler
    • .normalize - normalization
      • args: optional scaler
    • .pdf - probability density function (divide each by sum of array)
      • args: optional scaler
    • .wsample - weighted sample
      • args: weights, number to sample
You can’t perform that action at this time.