Methods of the class to preprocess data represented in the CSV format.
More...
Adds a simple feature modifier
- Parameters
-
CSVFeatureManager& addModifier |
( |
const features::FeatureIdCollectionIfacePtr & |
featureIds, |
|
|
const modifiers::csv::FeatureModifierIfacePtr & |
modifier, |
|
|
services::Status * |
status = NULL |
|
) |
| |
|
inline |
Adds extended feature modifier
- Parameters
-
[in] | featureIds | The identifiers of the features to be modified |
[in] | modifier | The feature modifier |
[out] | status | (optional) The pointer to status object |
- Returns
- Reference to itself
Finalizes CSV data parsing
- Parameters
-
[in] | dictionary | Pointer to the dictionary |
size_t getNumericTableNumberOfColumns |
( |
| ) |
const |
|
inline |
Gets number of columns which must be allocated in numeric table
- Returns
- The number of columns in numeric table
virtual void parseRowAsDictionary |
( |
char * |
rawRowData, |
|
|
size_t |
rawDataSize, |
|
|
DataSourceDictionary * |
dictionary |
|
) |
| |
|
inlinevirtual |
Parses a string that represents a feature vector and fills provided data source dictionary
- Parameters
-
[in] | rawRowData | Array of characters with the string that represents the feature vector |
[in] | rawDataSize | Size of the rawRowData array |
[in] | dictionary | Pointer to the dictionary |
Implements StringRowFeatureManagerIface.
void parseRowAsHeader |
( |
char * |
rawRowData, |
|
|
size_t |
rawDataSize |
|
) |
| |
|
inline |
Parses a string that represents header of CSV data
- Parameters
-
[in] | rawRowData | Array of characters with the string that represents the feature vector |
[in] | rawDataSize | Size of the rawRowData array |
Parses a string that represents a feature vector and converts it into a numeric representation
- Parameters
-
[in] | rawRowData | Array of characters with the string that represents the feature vector |
[in] | rawDataSize | Size of the rawRowData array |
[in] | dictionary | Pointer to the dictionary |
[out] | nt | Pointer to a Numeric Table to store the result of parsing |
[in] | ntRowIndex | Position in the Numeric Table at which to store the result of parsing |
Implements StringRowFeatureManagerIface.
void setDelimiter |
( |
char |
delimiter | ) |
|
|
inline |
Sets a new character as a delimiter for parsing CSV data (default ',')
Sets information about features from the given dictionary
- Parameters
-
dictionary | The data source dictionary |
The documentation for this class was generated from the following file: