Java* API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

Classes | List of all members
DataDictionary Class Reference

Class that represents the data set dictionary and provides methods to work with the data dictionary. Methods of the class use the com.intel.daal.data.DataFeature structure. More...

Class Constructor

◆ DataDictionary() [1/3]

DataDictionary ( DaalContext  context,
long  nFeatures,
FeaturesEqual  featuresEqual 
)

Constructs the dictionary

Parameters
contextContext to manage created data set dictionary
nFeaturesThe number of features in the table
featuresEqualFlag specifying that all features have equal types and properties

◆ DataDictionary() [2/3]

DataDictionary ( DaalContext  context,
long  nFeatures 
)

Constructs the dictionary

Parameters
contextContext to manage created data set dictionary
nFeaturesThe number of features in the table

◆ DataDictionary() [3/3]

DataDictionary ( DaalContext  context,
long  nFeatures,
long  cDictionary 
)

Constructs the dictionary from the defined C dictionary

Parameters
contextContext to manage created data set dictionary
nFeaturesThe number of features in the table
cDictionaryPointer to the C dictionary

Detailed Description

Member Function Documentation

◆ getFeature()

DataFeature getFeature ( int  idx)

Returns the feature with a given index

Parameters
idxIndex of the data feature
Returns
Feature with the given index.

◆ getFeaturesEqual()

FeaturesEqual getFeaturesEqual ( )

Returns the value of the featuresEqual flag

Returns
Value of the featuresEqual flag

◆ getNumberOfFeatures()

int getNumberOfFeatures ( )

Returns the number of features

Returns
Number of features

◆ resetDictionary()

void resetDictionary ( )

Resets dictionary and sets number of features to 0

◆ setAllFeatures()

void setAllFeatures ( DataFeature  defaultFeature)

Sets all features of the dictionary to the same type

Parameters
defaultFeatureDefault feature class to set all features to

◆ setFeature() [1/4]

void setFeature ( DataFeature  feature,
int  idx 
)

Sets a feature in the data dictionary

Parameters
featureData feature
idxIndex of the data feature

◆ setFeature() [2/4]

void setFeature ( Class<?>  cls,
int  idx,
DataFeatureUtils.FeatureType  featureType,
int  categoryNumber 
)

Sets a feature in the data dictionary

Parameters
clsClass containing values of the data feature
idxIndex of the data feature
featureTypeFeature type
categoryNumberNumber of categories

◆ setFeature() [3/4]

void setFeature ( Class<?>  cls,
int  idx,
DataFeatureUtils.FeatureType  featureType 
)

Sets a feature in the data dictionary

Parameters
clsClass containing values of the data feature
idxIndex of the data feature
featureTypeFeature type

◆ setFeature() [4/4]

void setFeature ( Class<?>  cls,
int  idx 
)

Sets a feature in the data dictionary

Parameters
clsClass containing values of the data feature
idxIndex of the data feature

◆ setNumberOfFeatures()

void setNumberOfFeatures ( long  nFeatures)

Sets number of features

Parameters
nFeaturesNumber of features in the table

Classes

class  FeaturesEqual
 

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.