|
LegoAgent-Eve
|


Public Member Functions | |
| Dataset () | |
| void | setsVMPoints (IDataPoint[] sVMPoints) |
| TODO: Sort the received array by figure Type () More... | |
| int | getSvmOrientation () |
| void | setSvmOrientation (int svmOrientation) |
| void | clearAll () |
| removes the currently existing dataset, does not store this changes to disk. More... | |
| void | addNewData (IDataPoint data) |
| Adds a new data to the dataset in RAM, does not store this changes to disk. More... | |
| ArrayList< IDataPoint > | getAllData () |
| returns the current dataset from RAM. More... | |
| IDataPoint[] | getSVMPoints () |
| returns the current SVM-Points to create the border, or null, if no data is stored More... | |
| String | toString () |
| returns the String-Repräsentation of this object More... | |
| void | removeStoredSVMPoints () |
| removes the currently stored SVM-Points. More... | |
Static Public Member Functions | |
| static void | store (Dataset dataset) |
| stores the current status of the dataset to the disk. More... | |
| static Dataset | load () |
| loads the data that are currently stored in the filesystem. More... | |
Static Public Attributes | |
| static final String | csvSplit = "," |
Private Attributes | |
| ArrayList< IDataPoint > | dataset |
| IDataPoint[] | sVMPoints |
| int | svmOrientation = 0 |
| orientation, whether negative values means circles or rectangles 0: circles get negative values, 1: rectangles get negative values More... | |
Static Private Attributes | |
| static final String | fileLocation = "datapoints.csv" |
| the path and filename in the filesystem of the serialized data. More... | |
| Dataset | ( | ) |
| void addNewData | ( | IDataPoint | data | ) |
Adds a new data to the dataset in RAM, does not store this changes to disk.
Implements IDataset.
References Logger.log().
Referenced by Dataset.load(), and Recognition.train().


| void clearAll | ( | ) |
removes the currently existing dataset, does not store this changes to disk.
Implements IDataset.
References Dataset.removeStoredSVMPoints().
Referenced by Recognition.removeAll().


| ArrayList<IDataPoint> getAllData | ( | ) |
returns the current dataset from RAM.
Implements IDataset.
References Dataset.dataset.
Referenced by NearestNeighbour.classify(), SVM.findSupportVectors(), Dataset.store(), and NearestNeighbour.validateAmountOfTrainingData().

| int getSvmOrientation | ( | ) |
References Dataset.svmOrientation.
Referenced by SVM.classify(), and SVM.findSupportVectors().

| IDataPoint [] getSVMPoints | ( | ) |
returns the current SVM-Points to create the border, or null, if no data is stored
Implements IDataset.
References Dataset.sVMPoints.
Referenced by SVM.computeSeparator().

|
static |
loads the data that are currently stored in the filesystem.
Path is specified by static variable fileLocation. TODO: Load of SVMPoints from separate file
References Dataset.addNewData(), Figure.circle, Dataset.csvSplit, Dataset.dataset, Dataset.Dataset(), Dataset.fileLocation, Logger.log(), and Figure.rectangle.
Referenced by Recognition.Recognition().


| void removeStoredSVMPoints | ( | ) |
removes the currently stored SVM-Points.
Used e.g. in case of addition of a new datapoint to the dataset.
Implements IDataset.
Referenced by Dataset.clearAll().

| void setSvmOrientation | ( | int | svmOrientation | ) |
References Dataset.svmOrientation.
Referenced by SVM.findSupportVectors().

| void setsVMPoints | ( | IDataPoint[] | sVMPoints | ) |
TODO: Sort the received array by figure Type ()
| sVMPoints |
References Dataset.sVMPoints.
Referenced by SVM.findSupportVectors().

|
static |
stores the current status of the dataset to the disk.
Storage-path is specified by static variable fileLocation.
References Dataset.csvSplit, Dataset.fileLocation, Dataset.getAllData(), and Logger.log().
Referenced by Recognition.removeAll(), and Recognition.train().


| String toString | ( | ) |
returns the String-Repräsentation of this object
|
static |
Referenced by Dataset.load(), and Dataset.store().
|
private |
Referenced by Dataset.getAllData(), and Dataset.load().
|
staticprivate |
the path and filename in the filesystem of the serialized data.
Referenced by Dataset.load(), and Dataset.store().
|
private |
orientation, whether negative values means circles or rectangles 0: circles get negative values, 1: rectangles get negative values
Referenced by Dataset.getSvmOrientation(), and Dataset.setSvmOrientation().
|
private |
Referenced by Dataset.getSVMPoints(), and Dataset.setsVMPoints().