Class that represents a dictionary of a data set and provides methods to work with the data dictionary.
More...
template<typename Feature, int SerializationTag>
class daal::data_management::interface1::Dictionary< Feature, SerializationTag >
◆ Dictionary() [1/2]
Dictionary |
( |
size_t |
nfeat, |
|
|
FeaturesEqual |
featuresEqual = notEqual |
|
) |
| |
|
inline |
Constructor of a data dictionary
- Parameters
-
[in] | nfeat | Number of features in the table |
[in] | featuresEqual | Flag specifying that all features have equal types and properties |
- Deprecated:
- This item will be removed in a future release. Use Dictionary::create instead.
◆ Dictionary() [2/2]
◆ create() [1/2]
Constructs a data dictionary
- Parameters
-
[in] | nfeat | Number of features in the table |
[in] | featuresEqual | Flag specifying that all features have equal types and properties |
[in] | stat | Status of the dictionary construction |
- Returns
- data dictionary
◆ create() [2/2]
Constructs a default data dictionary
- Parameters
-
[in] | stat | Status of the dictionary construction |
- Returns
- data dictionary
◆ getErrors()
Returns errors during the computation
- Returns
- Errors during the computation
- Deprecated:
- This item will be removed in a future release.
◆ getFeaturesEqual()
FeaturesEqual getFeaturesEqual |
( |
| ) |
const |
|
inline |
Returns the value of the featuresEqual flag
- Returns
- Value of the featuresEqual flag
◆ getNumberOfFeatures()
size_t getNumberOfFeatures |
( |
| ) |
const |
|
inline |
Returns the number of features
- Returns
- Number of features
◆ getSerializationTag()
virtual int getSerializationTag |
( |
| ) |
const |
|
inlinevirtual |
Returns a serialization tag, a unique identifier of this class used in serialization
- Returns
- Serialization tag
Implements SerializationIface.
◆ operator[]()
Feature& operator[] |
( |
const size_t |
idx | ) |
|
|
inline |
Returns a feature with a given index
- Parameters
-
[in] | idx | Index of the feature |
- Returns
- Requested feature
◆ resetDictionary()
Resets a dictionary and sets the number of features to 0
◆ setAllFeatures() [1/2]
Sets all features of a dictionary to the same type
- Parameters
-
[in] | defaultFeature | Default feature class to which to set all features |
◆ setAllFeatures() [2/2]
Sets all features of a dictionary to the same type
- Template Parameters
-
featureType | Default feature type to which to set all features |
◆ setFeature() [1/2]
- Parameters
-
[in] | feature | Data feature |
[in] | idx | Index of the data feature |
◆ setFeature() [2/2]
Adds a feature to a data dictionary
- Parameters
-
[in] | idx | Index of the data feature |
◆ setNumberOfFeatures()
Sets the number of features
- Parameters
-
[in] | numberOfFeatures | Number of features |
The documentation for this class was generated from the following file: