A derivative class of the NumericTable class, that provides methods to access the data that is stored as a contiguous array of homogeneous feature vectors. Table rows contain feature vectors, and columns contain values of individual features.
More...
Constructs homogeneous numeric table using implementation provided by user
- Parameters
-
context | Context to manage created homogeneous numeric table |
impl | Implementation of homogeneous numeric table |
Constructs homogeneous numeric table from the array of doubles
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of doubles
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of floats
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of floats
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of longs
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of longs
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of integers
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of integers
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
Constructs homogeneous numeric table from the array of doubles and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
HomogenNumericTable |
( |
DaalContext |
context, |
|
|
DataDictionary.FeaturesEqual |
featuresEqual, |
|
|
double[] |
data, |
|
|
long |
nFeatures, |
|
|
long |
nVectors, |
|
|
double |
constValue |
|
) |
| |
Constructs homogeneous numeric table from the array of doubles and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table from the array of floats and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
HomogenNumericTable |
( |
DaalContext |
context, |
|
|
DataDictionary.FeaturesEqual |
featuresEqual, |
|
|
float[] |
data, |
|
|
long |
nFeatures, |
|
|
long |
nVectors, |
|
|
float |
constValue |
|
) |
| |
Constructs homogeneous numeric table from the array of floats and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table from the array of longs and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table from the array of longs and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table from the array of integers and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table from the array of integers and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
data | Array of size nVectors x nFeatures |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table from C++ homogeneous numeric table
- Parameters
-
context | Context to manage created homogeneous numeric table |
cTable | Pointer to C++ numeric table |
Constructs homogeneous numeric table without memory allocation
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
Constructs homogeneous numeric table without memory allocation
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
Constructs homogeneous numeric table with memory allocation controlled via a flag
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
context | Context to manage created homogeneous numeric table |
featuresEqual | Flag that makes all features in the Numeric Table Data Dictionary equal |
cls | Numeric type of values in the table |
nColumns | Number of columns in the table |
nRows | Number of rows in the table |
allocFlag | Flag that controls internal memory allocation for data in the numeric table |
constValue | Constant to initialize entries of the homogeneous numeric table |
Constructs an empty Numeric Table with a predefined Data Dictionary
- Parameters
-
context | Context to manage created homogeneous numeric table |
cls | Numeric type of values in the table |
dict | Predefined Data Dictionary |
void assign |
( |
long |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the homogeneous numeric table |
void assign |
( |
int |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the homogeneous numeric table |
void assign |
( |
double |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the homogeneous numeric table |
void assign |
( |
float |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the homogeneous numeric table |
DoubleBuffer getBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Gets block of values for a given feature and returns it to java.nio.DoubleBuffer. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the DoubleBuffer
FloatBuffer getBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Gets block of values for a given feature and returns it to java.nio.FloatBuffer. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the FloatBuffer
IntBuffer getBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Gets block of values for a given feature and returns it to java.nio.IntBuffer. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the IntBuffer
DoubleBuffer getBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Reads block of rows from the table and returns it to java.nio.DoubleBuffer. This method needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into DoubleBuffer
FloatBuffer getBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Reads block of rows from the table and returns it to java.nio.FloatBuffer. This method needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into FloatBuffer
IntBuffer getBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Reads block of rows from the table and returns it to java.nio.IntBuffer. This method needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into IntBuffer
Gets data as an Object
- Returns
- Table data as an Object
double [] getDoubleArray |
( |
| ) |
|
Gets data as an array of doubles
- Returns
- Table data as an array of double
float [] getFloatArray |
( |
| ) |
|
Gets data as an array of floats
- Returns
- Table data as an array of floats
Gets data as an array of longs
- Returns
- Table data as an array of longs
Class<? extends Number> getNumericType |
( |
| ) |
|
Gets numeric type of data stored in numeric table
- Returns
- Numeric type of table data
void releaseBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Transfers the values of a given feature from the input DoubleBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input DoubleBuffer of size vectorNum |
void releaseBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Transfers the values of a given feature from the input FloatBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input FloatBuffer of size vectorNum |
void releaseBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Transfers the values of a given feature from the input IntBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input IntBuffer of size vectorNum |
void releaseBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Transfers the data from the input FloatBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input FloatBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
void releaseBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Transfers the data from the input DoubleBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input DoubleBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
void releaseBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Transfers the data from the input IntBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input IntBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
The documentation for this class was generated from the following file: