Giter Club home page Giter Club logo

kernel-density's Introduction

Kernel Density Estimation
-------------------------
(c) Tim Nugent 2014

Based on Philipp K. Janert's Perl module:
http://search.cpan.org/~janert/Statistics-KernelEstimation-0.05 

Multivariate stuff from here:
http://sfb649.wiwi.hu-berlin.de/fedc_homepage/xplore/ebooks/html/spm/spmhtmlnode18.html

Compile by running 'make'. Uses -std=c++11 - on older compilers you may need to change this to -std=c++0x in the Makefile.

Run all tests with 'make test'. This calls an R script which generates plots from various .csv file. The multivariate data in the data/ directory is the Old Faithful geyser eruption/waiting data.

Example usage:

	./kerndens data/univariate.csv > uni_pdf.csv

To plot this in R:

data <- read.table("uni_pdf.csv", header=FALSE, sep="," ,comment.char="#")
plot(data$V1,data$V2,xlab="x",ylab="density",main="Univariate PDF")

Full options:

Usage:
./kerndens [options] [csv_file]

Options:
-k <int>   Kernel type:
           1 = Gaussian (default)
           2 = Box
           3 = Epanechnikov
-b <int>   Bandwidth optimisation (Gaussian only):
           1 = Default
           2 = AMISE optimal, secant method
           3 = AMISE optimal, bisection method
-p <int>   Calculate:
           1 = PDF (default)
           2 = CDF

[email protected]

kernel-density's People

Contributors

timnugent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.