Learn R Programming

knnIndep (version 2.0)

P_di: Probability distribution of the distance to the ith nearest neighbour

Description

This function gives the distribution of the distances to the ith nearest neighbour of a reference point.

Usage

P_di(i, a, N)

Arguments

i
which neares neighbhour to calculate the probability for
a
the distance at which the ith nearest neighbout was observed, can be a vector
N
how many points in a sample

Value

returns the probability of observing the ith nearest neighbour at distance a in a sample of size N

See Also

Pc_givena,Pc_givena4nn

Examples

Run this code
knnIndep:::P_di(4,3,10)

Run the code above in your browser using DataLab