AddDataPoint

Declaration: TIlabTrnDataSet.AddDataPoint (Data: TDataPoint): integer;
The function AddDataPoint adds a new data point to the dataset. It returns the index of the new data point if Data has been added successfully, or -1 if the class number of the data point was out of range (valid range: 0..NClasses).