DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


CalcNNOfModelData

Declaration: TMemBasedLearner.CalcNNOfModelData;
The method CalcNNOfModelData calculates the table of nearest neighbors (up to a maximum of MBLMAXNEIGHBORS) and their respective distances for all objects in the data model. Please note that the table of nearest neighbors implicitly depends on the properties DistMode and ScalingMode. The variables used for the calculation of the nearest neighbors are given by the property VarType.

The nearest neighbors and their distances can be retrieved by the array properties kNNOfModelData and kNNDistOfModelData.