File view_vector_compressed.hpp¶
-
class CompressedVector : public CompressedView¶
- #include <view_vector_compressed.hpp>
A view that provides access to indices that have been grouped into bins.
Subclassed by BinnedFeatureVector, NominalFeatureVector
Public Types
Public Functions
-
inline CompressedVector(uint32 *indices, uint32 *indptr, uint32 numBins)¶
- Parameters:
indices – A pointer to an array of type
uint32, shape(numIndices)that stores indicesindptr – A pointer to an array that stores the indices of the first element in
indicesthat corresponds to a certain binnumBins – The number of bins
-
inline CompressedVector(const CompressedVector &other)¶
- Parameters:
other – A reference to an object of type
CompressedVectorthat should be copied
-
inline CompressedVector(CompressedVector &&other)¶
- Parameters:
other – A reference to an object of type
CompressedVectorthat should be moved
-
inline virtual ~CompressedVector() override¶
-
inline index_const_iterator indices_cbegin(uint32 index) const¶
Returns an
index_const_iteratorto the beginning of the indices that are associated with a specific bin.- Parameters:
index – The index of the nominal value
- Returns:
An
index_const_iteratorto the beginning
-
inline index_const_iterator indices_cend(uint32 index) const¶
Returns an
index_const_iteratorto the end of the indices of the examples that are associated with a specific bin.- Parameters:
index – The index of the bin
- Returns:
An
index_const_iteratorto the end
-
inline index_iterator indices_begin(uint32 index)¶
Returns an
index_iteratorto the beginning of the indices of the examples that are associated with a specific bin.- Parameters:
index – The index of the bin
- Returns:
An
index_iteratorto the beginning
-
inline index_iterator indices_end(uint32 index)¶
Returns an
index_iteratorto the end of the indices of the examples that are associated with a specific bin.- Parameters:
index – The index of the bin
- Returns:
An
index_iteratorto the end
-
inline CompressedVector(uint32 *indices, uint32 *indptr, uint32 numBins)¶