GENDATK KNearest neighbor data generation
B = GENDATK(A,N,K,S)
DescriptionGeneration of N points using the Knearest neighbors of objects in the dataset A. First, N points of A are chosen in a random order. Next, to each of these points and for each direction (feature), a Gaussiandistributed offset is added with the zero mean and the standard deviation: S * the mean signed difference between the point of A under consideration and its K nearest neighbors in A. The result of this procedure is that the generated points follow the local density properties of the point from which they originate. If A is a multiclass dataset the above procedure is followed class by class, neglecting objects of other classes and possibly unlabeled objects. If N is a vector of sizes, exactly N(I) objects are generated for class I. Default N is 100 objects per class. See alsodatasets, mappings, gendat, gendatp,
