1#ifndef KMEANS_MOCK_MATRIX_HPP
2#define KMEANS_MOCK_MATRIX_HPP
51 size_t my_long_num_dim;
142 return my_data +
static_cast<size_t>(
i) * my_long_num_dim;
150 return my_data + (
workspace.at++) * my_long_num_dim;
158 return my_data +
static_cast<size_t>(
workspace.sequence[
workspace.at++]) * my_long_num_dim;
Implements the variance partitioning method of Su and Dy (2007).
Definition InitializeVariancePartition.hpp:164
Compile-time interface for matrix data.
Definition MockMatrix.hpp:17
double data_type
Definition MockMatrix.hpp:33
int index_type
Definition MockMatrix.hpp:39
IndexedAccessWorkspace create_workspace(const index_type *sequence, index_type length) const
Definition MockMatrix.hpp:131
const data_type * get_observation(ConsecutiveAccessWorkspace &workspace) const
Definition MockMatrix.hpp:149
ConsecutiveAccessWorkspace create_workspace(index_type start, index_type length) const
Definition MockMatrix.hpp:104
index_type num_observations() const
Definition MockMatrix.hpp:57
const data_type * get_observation(int i, RandomAccessWorkspace &workspace) const
Definition MockMatrix.hpp:141
const data_type * get_observation(IndexedAccessWorkspace &workspace) const
Definition MockMatrix.hpp:157
int dimension_type
Definition MockMatrix.hpp:45
RandomAccessWorkspace create_workspace() const
Definition MockMatrix.hpp:79
dimension_type num_dimensions() const
Definition MockMatrix.hpp:64
Namespace for k-means clustering.
Definition compute_wcss.hpp:12
Workspace for access to consecutive observations.
Definition MockMatrix.hpp:88
Workspace for access to a indexed subset of observations.
Definition MockMatrix.hpp:113
Workspace for random access to observations.
Definition MockMatrix.hpp:74