|
| | Matrix (MatrixPointer_ matrix, bool transposed=false) |
| |
| KIndex_ | num_observations () const |
| |
| std::size_t | num_dimensions () const |
| |
| std::unique_ptr< kmeans::RandomAccessExtractor< KIndex_, KData_ > > | new_extractor () const |
| |
|
std::unique_ptr< kmeans::ConsecutiveAccessExtractor< KIndex_, KData_ > > | new_extractor (KIndex_ start, KIndex_ length) const |
| |
|
std::unique_ptr< kmeans::IndexedAccessExtractor< KIndex_, KData_ > > | new_extractor (const KIndex_ *sequence, std::size_t length) const |
| |
|
virtual std::unique_ptr< ConsecutiveAccessExtractor< Index_, Data_ > > | new_extractor (Index_ start, Index_ length) const =0 |
| |
|
virtual std::unique_ptr< IndexedAccessExtractor< Index_, Data_ > > | new_extractor (const Index_ *sequence, std::size_t length) const =0 |
| |
|
auto | new_known_extractor () const |
| |
|
auto | new_known_extractor (Index_ start, Index_ length) const |
| |
|
auto | new_known_extractor (const Index_ *sequence, std::size_t length) const |
| |
template<typename KIndex_, typename KData_, typename TValue_, typename TIndex_, class MatrixPointer_ = std::shared_ptr<const tatami::Matrix<TValue_, TIndex_> >>
class kmeans_tatami::Matrix< KIndex_, KData_, TValue_, TIndex_, MatrixPointer_ >
kmeans-compatible wrapper around a tatami matrix.
- Template Parameters
-
| KIndex_ | Integer type of observation indices for kmeans. |
| KData_ | Numeric type of the data for kmeans. |
| TValue_ | Numeric type of matrix values for tatami. |
| TIndex_ | Integer type of the row/column indices for tatami. |
| Matrix_ | Pointer to an instance to a tatami::Matrix or one of its subclasses. This may be a raw or smart pointer. |
Pretty much as it says on the tin - implements a kmeans::Matrix subclass to wrap a tatami::Matrix. The idea is to enable the use of arbitrary tatami matrix representations in kmeans functions, e.g., to support clustering from a file-backed matrix.