The SUMO toolbox  2017a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
ScatteredDataset Class Reference

A scattered dataset contains of a series of unsorted columns of data. More...

Inheritance diagram for ScatteredDataset:
Inheritance graph
[legend]

Public Member Functions

 ScatteredDataset (int inputDimension, int outputDimension)
 constructor More...
 
void loadText (InputStream stream) throws DataSourceException
 Read a datafile containing n x d numbers with n the number of samples, d the dimensionality and put it in a KDTree. More...
 
void evaluate (SamplePoint sample) throws DataSourceException
 Return the value of a samplepoint using the scattered data (the sample is clipped to the nearest point) More...
 
Iterator< SamplePointgetIterator ()
 iterate over data More...
 
int getInputDimension ()
 Get Input dimension of this dataset. More...
 
int getOutputDimension ()
 Get output dimension of this dataset. More...
 
int getSize ()
 Get the size of the dataset. More...
 
RawDataset getRawDataset ()
 Get all points and values. More...
 

Detailed Description

A scattered dataset contains of a series of unsorted columns of data.

Constructor & Destructor Documentation

ScatteredDataset ( int  inputDimension,
int  outputDimension 
)
inline

constructor

Parameters
inputDimensionhow many columns are input?
outputDimensionhow many columns are output?

Member Function Documentation

void evaluate ( SamplePoint  sample) throws DataSourceException
inline

Return the value of a samplepoint using the scattered data (the sample is clipped to the nearest point)

Parameters
samplethe sample to evaluate, its outputparameters are set here. Note that its input parameters may be changed if the sample is clipped!
Exceptions
DataSourceException

Implements Dataset.

int getInputDimension ( )
inline

Get Input dimension of this dataset.

Implements Dataset.

Iterator<SamplePoint> getIterator ( )
inline

iterate over data

Returns
int getOutputDimension ( )
inline

Get output dimension of this dataset.

Implements Dataset.

RawDataset getRawDataset ( )
inline

Get all points and values.

Implements Dataset.

int getSize ( )
inline

Get the size of the dataset.

Implements Dataset.

void loadText ( InputStream  stream) throws DataSourceException
inline

Read a datafile containing n x d numbers with n the number of samples, d the dimensionality and put it in a KDTree.

Parameters
scannerThe scanner object to use to read the data
Exceptions
DataSourceException

Implements Dataset.


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