discrete_binomial: Discrete binomial kernel

View source: R/discrete_binomial.R

discrete_binomialR Documentation

Discrete binomial kernel

Description

Discrete binomial kernel

Usage

discrete_binomial(x, z, 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

Value

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

Examples

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

kernopt documentation built on April 3, 2025, 9:34 p.m.