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...
|
static services::SharedPtr
< SOANumericTable > | create (size_t nColumns=0, size_t nRows=0, DictionaryIface::FeaturesEqual featuresEqual=DictionaryIface::notEqual, services::Status *stat=NULL) |
|
static services::SharedPtr
< SOANumericTable > | create (NumericTableDictionaryPtr ddict, size_t nRows, AllocationFlag memoryAllocationFlag=notAllocate, services::Status *stat=NULL) |
|
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.
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.
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.
static services::SharedPtr<SOANumericTable> create |
( |
size_t |
nColumns = 0 , |
|
|
size_t |
nRows = 0 , |
|
|
DictionaryIface::FeaturesEqual |
featuresEqual = DictionaryIface::notEqual , |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
static |
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
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
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
services::SharedPtr<byte> getArraySharedPtr |
( |
size_t |
idx | ) |
|
|
inline |
Returns a pointer to an array of values for a given feature
- Parameters
-
- Returns
- Pointer to the array of values
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.
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.
services::Status getBlockOfColumnValues |
( |
size_t |
feature_idx, |
|
|
size_t |
vector_idx, |
|
|
size_t |
value_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< int > & |
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.
services::Status getBlockOfRows |
( |
size_t |
vector_idx, |
|
|
size_t |
vector_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< double > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getBlockOfRows |
( |
size_t |
vector_idx, |
|
|
size_t |
vector_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< float > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getBlockOfRows |
( |
size_t |
vector_idx, |
|
|
size_t |
vector_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< int > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status releaseBlockOfColumnValues |
( |
BlockDescriptor< double > & |
block | ) |
|
|
inlinevirtual |
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
services::Status releaseBlockOfColumnValues |
( |
BlockDescriptor< float > & |
block | ) |
|
|
inlinevirtual |
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
services::Status releaseBlockOfColumnValues |
( |
BlockDescriptor< int > & |
block | ) |
|
|
inlinevirtual |
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
services::Status setArray |
( |
const services::SharedPtr< T > & |
ptr, |
|
|
size_t |
idx |
|
) |
| |
|
inline |
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 |
services::Status setArray |
( |
T * |
ptr, |
|
|
size_t |
idx |
|
) |
| |
|
inline |
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 |
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: