An open API service indexing awesome lists of open source software.

https://github.com/derekxkwan/dxk-ruby-ext

class extensions for ruby
https://github.com/derekxkwan/dxk-ruby-ext

array ruby

Last synced: about 1 month ago
JSON representation

class extensions for ruby

Awesome Lists containing this project

README

          

# 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