Class that provides methods to access data stored as a structure of arrays, where each (contiguous) array represents values corresponding to a specific feature.
More...
◆ SOANumericTable() [1/3]
SOANumericTable |
( |
size_t |
nColumns = 0 , |
|
|
size_t |
nRows = 0 , |
|
|
DictionaryIface::FeaturesEqual |
featuresEqual = DictionaryIface::notEqual |
|
) |
| |
Constructor for an empty Numeric Table
- Parameters
-
[in] | nColumns | Number of columns in the table |
[in] | nRows | Number of rows in the table |
[in] | featuresEqual | Flag that makes all features in the NumericTableDictionary equal |
- Deprecated:
- This item will be removed in a future release. Use SOANumericTable::create instead.
◆ SOANumericTable() [2/3]
Constructor for an empty Numeric Table with a predefined NumericTableDictionary
- Parameters
-
[in] | ddict | Pointer to the predefined NumericTableDictionary |
[in] | nRows | Number of rows in the table |
[in] | memoryAllocationFlag | Flag that controls internal memory allocation for data in the numeric table |
- Deprecated:
- This item will be removed in a future release.
◆ SOANumericTable() [3/3]
Constructor for an empty Numeric Table with a predefined NumericTableDictionary
- Parameters
-
[in] | ddict | Shared pointer to the predefined NumericTableDictionary |
[in] | nRows | Number of rows in the table |
[in] | memoryAllocationFlag | Flag that controls internal memory allocation for data in the numeric table |
- Deprecated:
- This item will be removed in a future release. Use SOANumericTable::create instead.
◆ create() [1/2]
Constructs an empty Numeric Table
- Parameters
-
[in] | nColumns | Number of columns in the table |
[in] | nRows | Number of rows in the table |
[in] | featuresEqual | Flag that makes all features in the NumericTableDictionary equal |
[out] | stat | Status of the numeric table construction |
- Returns
- Empty numeric table
◆ create() [2/2]
Constructs an empty Numeric Table with a predefined NumericTableDictionary
- Parameters
-
[in] | ddict | Shared pointer to the predefined NumericTableDictionary |
[in] | nRows | Number of rows in the table |
[in] | memoryAllocationFlag | Flag that controls internal memory allocation for data in the numeric table |
[out] | stat | Status of the numeric table construction |
- Returns
- Numeric table with a predefined NumericTableDictionary
◆ getArray()
void* getArray |
( |
size_t |
idx | ) |
|
|
inline |
Returns a pointer to an array of values for a given feature
- Parameters
-
- Returns
- Pointer to the array of values
◆ getArraySharedPtr()
Returns a pointer to an array of values for a given feature
- Parameters
-
- Returns
- Pointer to the array of values
◆ getBlockOfColumnValues() [1/3]
services::Status getBlockOfColumnValues |
( |
size_t |
feature_idx, |
|
|
size_t |
vector_idx, |
|
|
size_t |
value_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< double > & |
block |
|
) |
| |
|
inlinevirtual |
Gets a block of values for a given feature.
- Parameters
-
[in] | feature_idx | Feature index. |
[in] | vector_idx | Index of the first feature vector to include into the block. |
[in] | value_num | Number of feature values in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature values. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature values returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfColumnValues() [2/3]
services::Status getBlockOfColumnValues |
( |
size_t |
feature_idx, |
|
|
size_t |
vector_idx, |
|
|
size_t |
value_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< float > & |
block |
|
) |
| |
|
inlinevirtual |
Gets a block of values for a given feature.
- Parameters
-
[in] | feature_idx | Feature index. |
[in] | vector_idx | Index of the first feature vector to include into the block. |
[in] | value_num | Number of feature values in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature values. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature values returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfColumnValues() [3/3]
Gets a block of values for a given feature.
- Parameters
-
[in] | feature_idx | Feature index. |
[in] | vector_idx | Index of the first feature vector to include into the block. |
[in] | value_num | Number of feature values in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature values. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature values returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfRows() [1/3]
Gets a block of rows from a table.
- Parameters
-
[in] | vector_idx | Index of the first row to include into the block. |
[in] | vector_num | Number of rows in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature vectors. |
[out] | block | The block of feature vectors. |
- Returns
- Actual number of feature vectors returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfRows() [2/3]
Gets a block of rows from a table.
- Parameters
-
[in] | vector_idx | Index of the first row to include into the block. |
[in] | vector_num | Number of rows in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature vectors. |
[out] | block | The block of feature vectors. |
- Returns
- Actual number of feature vectors returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfRows() [3/3]
Gets a block of rows from a table.
- Parameters
-
[in] | vector_idx | Index of the first row to include into the block. |
[in] | vector_num | Number of rows in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature vectors. |
[out] | block | The block of feature vectors. |
- Returns
- Actual number of feature vectors returned by the method.
Implements DenseNumericTableIface.
◆ releaseBlockOfColumnValues() [1/3]
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
◆ releaseBlockOfColumnValues() [2/3]
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
◆ releaseBlockOfColumnValues() [3/3]
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
◆ releaseBlockOfRows() [1/3]
◆ releaseBlockOfRows() [2/3]
◆ releaseBlockOfRows() [3/3]
◆ setArray() [1/2]
Sets a pointer to an array of values for a given feature
- Template Parameters
-
- Parameters
-
[in] | ptr | Pointer to the array of the T type that stores feature values |
[in] | idx | Feature index |
◆ setArray() [2/2]
Sets a pointer to an array of values for a given feature
- Template Parameters
-
- Parameters
-
[in] | ptr | Pointer to the array of the T type that stores feature values |
[in] | idx | Feature index |
◆ setDictionary()
Sets a data dictionary in the Numeric Table
- Parameters
-
[in] | ddict | Pointer to the data dictionary |
- Deprecated:
- This item will be removed in a future release.
Reimplemented from NumericTable.
The documentation for this class was generated from the following file: