Source: wikibot/k-function
= K-function
{wiki=K-function}
The K-function, or K statistic, is a tool used in spatial statistics to analyze the distribution of points in a given space. It is particularly useful in evaluating whether the spatial pattern of points in a dataset is clustered, random, or dispersed. The K-function is defined for a specific radius \\( r \\) and is calculated as follows: 1. For each point in the dataset, determine how many other points lie within a distance \\( r \\).