Learn R Programming

RVCompare (version 0.1.8)

mixtureOfUniforms: Get a mixture of uniform (AKA tophat) distributions of size 'kernelSize' centered in the points 'kernelPositions'.

Description

Get a mixture of uniform (AKA tophat) distributions of size 'kernelSize' centered in the points 'kernelPositions'.

Usage

mixtureOfUniforms(kernelPositions, kernelSize)

Value

a single parameter callable function that computes the probability density of the mixture in any point.

Arguments

kernelPositions

an array of real values that decribe the positions of the kernels.

kernelSize

The size of the uniform kernel: a positive float.