Datapoint
Datapoint in a dataset, with features and possibly a class index. Can be used as the model for UI data points.
Constructor Summary
Public Constructor | ||
public |
constructor(features: Array<number>) Constructor. |
Member Summary
Public Members | ||
public |
classIndex: * |
|
public |
features: * |
|
public |
|
Method Summary
Public Methods | ||
public |
getClassIndex(): mixed Get the class index of this data point. |
|
public |
Check whether the data point is marked. |
|
public |
setClassIndex(classIndex: mixed) Change the class index of this data point. |
|
public |
Change the "marked" status of this data point. |
Public Constructors
Public Methods
public getClassIndex(): mixed source
Get the class index of this data point.
Return:
mixed | Class index |
public setClassIndex(classIndex: mixed) source
Change the class index of this data point.
Params:
Name | Type | Attribute | Description |
classIndex | mixed | New class index |