functional KDE in ruby, integrated and generating some reasonably pretty plots