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

A gridded dataset contains of a single column of data, the inputvalues can be obtained by the relative position of the row. More...

Inheritance diagram for GriddedDataset:
Inheritance graph
[legend]

Public Member Functions

 GriddedDataset (int[] gridSize, double[] minima, double[] maxima, int outputCount)
 constructor More...
 
void loadText (InputStream stream) throws DataSourceException
 parse a file (scanner) for data More...
 
void evaluate (SamplePoint sample) throws DataSourceException
 evaluate a samplepoint with the parsed data 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...
 
long[] getNextArrayIndex (long[] index)
 

Detailed Description

A gridded dataset contains of a single column of data, the inputvalues can be obtained by the relative position of the row.

Constructor & Destructor Documentation

GriddedDataset ( int[]  gridSize,
double[]  minima,
double[]  maxima,
int  outputCount 
)
inline

constructor

Parameters
gridSizesize and dimensions of the grid
outputCounthow much values are available in the file

Member Function Documentation

void evaluate ( SamplePoint  sample) throws DataSourceException
inline

evaluate a samplepoint with the parsed data

Parameters
sample
Exceptions
DataSourceException

Implements Dataset.

int getInputDimension ( )
inline

Get Input dimension of this dataset.

Implements Dataset.

Iterator<SamplePoint> getIterator ( )
inline

iterate over data

Returns
long [] getNextArrayIndex ( long[]  index)
inline
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

parse a file (scanner) for data

Parameters
scanner
Exceptions
DataSourceException

Implements Dataset.


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