Learn R Programming

kernopt (version 1.0.0)

discrete_binomial: Discrete binomial kernel

Description

Discrete binomial kernel

Usage

discrete_binomial(x, z, h)

Value

Returns the value of the associated kernel function according to the target x and the bandwidth h.

Arguments

x

the target point at which the density is calculated

z

the vector of observations

h

the bandwidth (or smoothing parameter) which should match the condition 0<= h < 1

Examples

Run this code
# Basic usage of discrete_binomial() to compute a Discrete Binomial Kernel
discrete_binomial(x = 25, z = 1:50, h = 0.5)

Run the code above in your browser using DataLab