PRTools contents |
KNNM
W = KNNM(A,KNN)
D = B*W
Input | |
A | Dataset |
KNN | Number of nearest neighbours |
Output | |
W | Density estimate |
A density estimator is constructed based on the k-Nearest Neighbour rule using the labeled objects in A. All objects, however, are used if the entire dataset is unlabeled or if A is not a dataset, but a double. In all cases, just single density estimator W is computed. Class priors in A are neglected.
The mapping W may be applied to a new dataset B using DENSITY = B*W.
datasets, mappings, knnc, qdc, parzenm, gaussm,
PRTools contents |