neighbors: Test whether the observation points are in the neighborhood.

View source: R/utils.R

neighborsR Documentation

Test whether the observation points are in the neighborhood.

Description

Test if there are more than k_0 points, defined by t, in the neighborhood of t_0, defined by the bandwidth h.

Usage

neighbors(t, t0, h, k0)

Arguments

t

Vector, sampling points.

t0

Numeric, estimation point.

h

Numeric, bandwidth.

k0

Numeric, number of points to be in the neighborhood.

Value

Boolean, true if there are enough points in the neighborhood.


StevenGolovkine/funestim documentation built on June 15, 2022, 3:42 a.m.