Skip navigation links

Package de.lmu.ifi.dbs.elki.datasource.parser

Parsers for different file formats and data types.

See: Description


Package de.lmu.ifi.dbs.elki.datasource.parser Description

Parsers for different file formats and data types.

The general use-case for any parser is to create objects out of an InputStream (e.g. by reading a data file). The objects are packed in a MultipleObjectsBundle which, in turn, is used by a DatabaseConnection-Object to fill a Database containing the corresponding objects.

By default (i.e., if the user does not specify any specific requests), any KDDTask will use the StaticArrayDatabase which, in turn, will use a FileBasedDatabaseConnection and a NumberVectorLabelParser to parse a specified data file creating a StaticArrayDatabase containing DoubleVector-Objects.

Thus, the standard procedure to use a data set of a real-valued vector space is to prepare the data set in a file of the following format (as suitable to NumberVectorLabelParser):

This file format is e.g. also suitable to gnuplot.

As an example file following these requirements consider e.g.: exampledata.txt

Skip navigation links
ELKI Version 0.7.0~20150828

Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.