validate_Kernel: Validator for S3 class 'Kernel'

Description Usage Arguments Details Special Attention See Also

View source: R/kernel.R

Description

This function serves as a validator for the S3 class Kernel. See 'Details' for further information and potential flaws.

Usage

1

Arguments

x

a R object to validate as an object of S3 class Kernel.

Details

The validator validate_Kernel can be used to verify objects as formally correct S3 objects of class Kernel. In particular the formal structure is ensured and validate_IntegrableFunction is called internally. Additionally this function tries to (see 'Special Attention') validate the additional conditions of valid kernel functions (as specified in the first 'Details'-paragraph of Kernel).

Special Attention

Like all numerical routines, validate_Kernel can evaluate the represented function on a finite set of points. If the represented function returns valid results over nearly all its range, it is possible that the validator misses unexpected/wrong return values. Thus, using Kernel or validate_Kernel to construct and validate objects representing kernels is not sufficient to ensure the properties listed in the first 'Details'-paragraph of Kernel, but serves more as a sanity-check.

See Also

Kernel for more information about kernel functions and the S3 class Kernel, IntegrableFunction for more information about the superclass IntegrableFunction.


hericks/KDE documentation built on Aug. 22, 2020, 12:04 a.m.