NODElib Documentation

By Gary William Flake

NAME

dense.h - basic density estimation routines

SYNOPSIS

Given a DATASET, the routines in this package allow you to construct a simple density estimator with the kernel function of your choice.

#include <dense.h>

double de_kernal_gauss(double x);

double de_estimate(DATASET *set, double var,
    double (*
kernal)(double x),
    double *
x);

DESCRIPTION

Function Definitions

The following function prototypes are given in the header file dense.h.

double de_kernal_gauss(double x);

A Gaussian kernal for density estimation. You can add your own kernel functions, if you like.

double de_estimate(DATASET *set, double var,
    double (*
kernal)(double x),
    double *
x);

Computes the density of the data in set withkernel as a kernel function with variance var, and with respect to the input, x.

AUTHOR

Gary William Flake (gary.flake@usa.net).