Skip to content

princelab/KDER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Kder: Your one stop shop for KDEs in Ruby#

Here, we have a standalone client for Kernel Density Estimation in Ruby. This calculates a KDE ([x,y] points) from a given source array in Ruby, complete with a bandwidth estimation. For me, this comes in handy for pre-generating a KDE for later interactive JS plotting on the client side of my data analysis server.

Examples

require 'kder'
Kder.kde [1,2,3] # it will discover its own estimate of the bandwidth

Kder.kde(1e5.to_i.times.map { rand(100) }, 3) #specifying my own bandwidth

About

A KDE implementation in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages