Class that represents a dictionary of a data set and provides methods to work with the data dictionary.
More...
|
static services::SharedPtr
< Dictionary > | create (size_t nfeat, FeaturesEqual featuresEqual=notEqual, services::Status *stat=NULL) |
|
static services::SharedPtr
< Dictionary > | create (services::Status *stat=NULL) |
|
|
enum | FeaturesEqual { notEqual,
equal
} |
| Enumeration to specify whether the Data Dictionary contains equal features.
|
|
template<typename Feature, int SerializationTag>
class daal::data_management::interface1::Dictionary< Feature, SerializationTag >
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.
static services::SharedPtr<Dictionary> create |
( |
size_t |
nfeat, |
|
|
FeaturesEqual |
featuresEqual = notEqual , |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
inlinestatic |
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
static services::SharedPtr<Dictionary> create |
( |
services::Status * |
stat = NULL | ) |
|
|
inlinestatic |
Constructs a default data dictionary
- Parameters
-
[in] | stat | Status of the dictionary construction |
- Returns
- data dictionary
DAAL_DEPRECATED services::SharedPtr<services::KernelErrorCollection> getErrors |
( |
| ) |
|
|
inline |
Returns errors during the computation
- Returns
- Errors during the computation
- Deprecated:
- This item will be removed in a future release.
FeaturesEqual getFeaturesEqual |
( |
| ) |
const |
|
inline |
Returns the value of the featuresEqual flag
- Returns
- Value of the featuresEqual flag
size_t getNumberOfFeatures |
( |
| ) |
const |
|
inline |
Returns the number of features
- Returns
- Number of features
virtual int getSerializationTag |
( |
| ) |
const |
|
inlinevirtual |
Returns a serialization tag, a unique identifier of this class used in serialization
- Returns
- Serialization tag
Implements SerializationIface.
Feature& operator[] |
( |
const size_t |
idx | ) |
|
|
inline |
Returns a feature with a given index
- Parameters
-
[in] | idx | Index of the feature |
- Returns
- Requested feature
services::Status resetDictionary |
( |
| ) |
|
|
inline |
Resets a dictionary and sets the number of features to 0
virtual services::Status setAllFeatures |
( |
const Feature & |
defaultFeature | ) |
|
|
inlinevirtual |
Sets all features of a dictionary to the same type
- Parameters
-
[in] | defaultFeature | Default feature class to which to set all features |
services::Status setAllFeatures |
( |
| ) |
|
|
inline |
Sets all features of a dictionary to the same type
- Template Parameters
-
featureType | Default feature type to which to set all features |
services::Status setFeature |
( |
const Feature & |
feature, |
|
|
size_t |
idx |
|
) |
| |
|
inline |
- Parameters
-
[in] | feature | Data feature |
[in] | idx | Index of the data feature |
services::Status setFeature |
( |
size_t |
idx | ) |
|
|
inline |
Adds a feature to a data dictionary
- Parameters
-
[in] | idx | Index of the data feature |
virtual services::Status setNumberOfFeatures |
( |
size_t |
numberOfFeatures | ) |
|
|
inlinevirtual |
Sets the number of features
- Parameters
-
[in] | numberOfFeatures | Number of features |
The documentation for this class was generated from the following file: