LegoAgent-Eve
Dataset Class Reference
Inheritance diagram for Dataset:
Collaboration diagram for Dataset:

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< IDataPointgetAllData ()
 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< IDataPointdataset
 
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...
 

Constructor & Destructor Documentation

Dataset ( )

Referenced by Dataset.load().

Here is the caller graph for this function:

Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearAll ( )

removes the currently existing dataset, does not store this changes to disk.

Implements IDataset.

References Dataset.removeStoredSVMPoints().

Referenced by Recognition.removeAll().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

int getSvmOrientation ( )

References Dataset.svmOrientation.

Referenced by SVM.classify(), and SVM.findSupportVectors().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

static Dataset load ( )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void setSvmOrientation ( int  svmOrientation)

References Dataset.svmOrientation.

Referenced by SVM.findSupportVectors().

Here is the caller graph for this function:

void setsVMPoints ( IDataPoint[]  sVMPoints)

TODO: Sort the received array by figure Type ()

Parameters
sVMPoints

References Dataset.sVMPoints.

Referenced by SVM.findSupportVectors().

Here is the caller graph for this function:

static void store ( Dataset  dataset)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

String toString ( )

returns the String-Repräsentation of this object

Member Data Documentation

final String csvSplit = ","
static

Referenced by Dataset.load(), and Dataset.store().

ArrayList<IDataPoint> dataset
private

Referenced by Dataset.getAllData(), and Dataset.load().

final String fileLocation = "datapoints.csv"
staticprivate

the path and filename in the filesystem of the serialized data.

Referenced by Dataset.load(), and Dataset.store().

int svmOrientation = 0
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().

IDataPoint [] sVMPoints
private

The documentation for this class was generated from the following file: