.filterLocMin {CellMixS} | R Documentation

## .filterLocMin

### Description

Function to filter knn by overall distance density distribution.

### Usage

    .filterLocMin(knn_cell, k_min)

### Arguments

`knn_cell` | Data frame with one column "distance" and one column named by the group variable. Rows correspond to the knn cells and do not need rownames.
`k_min` | Numeric. Minimum number of Knn to include.

### Details

Internal function to filter cells used for cms testing to come from a continous overall density distribution function (similar to cluster definitions). 'filterLocMin' is only applied, if k-min is specified as parameter in `.cmsCell` or `cms`.

### Value

data.frame with two columns (index, distance) for filtered knn cells.

### See Also

`.cmsCell`

Other helper functions: `.cmsCell()`, `.defineSubspace()`, `.filterKnn()`, `.ldfKnn()`, `.smoothCms()`

[Package CellMixS version 1.10.0 Index]