This class implements the abstract data object which will be specialized for both data modes toggled by tUseIndices.
More...
|
| Data ()=default |
| Creates a new empty data object. More...
|
|
| Data (const Observation *observations, const size_t numberObservations, const bool copyObservations=false) |
| Creates a new data object by observations lying in a joined memory block as array. More...
|
|
| Data (Data< T, tDimension > &&data) noexcept |
| Move constructor for an data object. More...
|
|
const Observation & | observation (const DataIndex &dataIndex) const |
| Returns one specific observation of this data object specified by the data-index of this observation. More...
|
|
size_t | numberObservations () const |
| Returns the number of observations that are stored by this data object. More...
|
|
bool | isValidDataIndex (const DataIndex &dataIndex) const |
| Returns whether a given data-index is valid and has a corresponding observation stored in this data object. More...
|
|
const Observation & | operator[] (const DataIndex &dataIndex) const |
| Returns one specific observation of this data object specified by the data-index of this observation. More...
|
|
Data< T, tDimension > & | operator= (Data< T, tDimension > &&data) noexcept |
| Move operator. More...
|
|
| operator bool () const |
| Returns whether this data object holds at least one observation. More...
|
|
| Data ()=default |
| Creates a new empty data object. More...
|
|
| Data (const Observation **observationPointers, const size_t numberObservations, const bool copyPointers=false) |
| Creates a new data object by observations lying at individual memory positions. More...
|
|
| Data (Data< T, tDimension > &&data) noexcept |
| Move constructor for an data object. More...
|
|
const Observation & | observation (const DataIndex &dataIndex) const |
| Returns one specific observation of this data object specified by the data-index of this observation. More...
|
|
size_t | numberObservations () const |
| Returns the number of observations that are stored by this data object. More...
|
|
bool | isValidDataIndex (const DataIndex &dataIndex) const |
| Returns whether a given data-index is valid and has a corresponding observation stored in this data object. More...
|
|
const Observation & | operator[] (const DataIndex &dataIndex) const |
| Returns one specific observation of this data object specified by the data-index of this observation. More...
|
|
Data< T, tDimension > & | operator= (Data< T, tDimension > &&data) noexcept |
| Move operator. More...
|
|
| operator bool () const |
| Returns whether this data object holds at least one observation. More...
|
|
| Data (const Observation *observations, const size_t numberObservations, const bool copyObservations) |
|
| Data (Data< T, tDimension > &&data) noexcept |
|
const Clustering< true >::Data< T, tDimension >::Observation & | observation (const DataIndex &dataIndex) const |
|
size_t | numberObservations () const |
|
bool | isValidDataIndex (const DataIndex &dataIndex) const |
|
const Clustering< true >::Data< T, tDimension >::Observation & | operator[] (const DataIndex &dataIndex) const |
|
Clustering< true >::Data< T, tDimension > & | operator= (Data< T, tDimension > &&data) noexcept |
|
| operator bool () const |
|
| Data (const Observation **observationPointers, const size_t numberObservations, const bool copyPointers) |
|
| Data (Data< T, tDimension > &&data) noexcept |
|
const Clustering< false >::Data< T, tDimension >::Observation & | observation (const DataIndex &dataIndex) const |
|
size_t | numberObservations () const |
|
bool | isValidDataIndex (const DataIndex &dataIndex) const |
|
const Clustering< false >::Data< T, tDimension >::Observation & | operator[] (const DataIndex &dataIndex) const |
|
Clustering< false >::Data< T, tDimension > & | operator= (Data< T, tDimension > &&data) noexcept |
|
| operator bool () const |
|
template<bool tUseIndices>
template<typename T, size_t tDimension>
class Ocean::Clustering< tUseIndices >::Data< T, tDimension >
This class implements the abstract data object which will be specialized for both data modes toggled by tUseIndices.
Specialization for Clustering<true>::Data<T, tDimension>.
- Template Parameters
-
T | The data type of each element of an observation |
tDimension | The dimension of each observation (the number of elements in each observation), with range [1, infinity) |
This data class implements the first data mode of the clustering class identifying observations by their indices.
- Template Parameters
-
T | The data type of each element of an observation |
tDimension | The dimension of each observation (the number of elements in each observation), with range [1, infinity) |
This data class implements the second data mode of the clustering class identifying observations by their pointers.
- Template Parameters
-
T | The data type of each element of an observation |
tDimension | The dimension of each observation (the number of elements in each observation), with range [1, infinity) |
template<bool tUseIndices>
template<typename T , size_t tDimension>
Creates a new data object by observations lying in a joined memory block as array.
Due to performance issues: The given observations can be copied or used directly without any memory copy.
Beware: If no copy of the observations is created, the given observations must exist as long as this data object (or the corresponding clustering object) exists.
- Parameters
-
observations | The first observation in the given joined memory block |
numberObservations | The number of observations that are provided, with range [1, infinity) |
copyObservations | True, to copy the given observations; False, to simply use the given observations as reference |
template<bool tUseIndices>
template<typename T , size_t tDimension>
Creates a new data object by observations lying at individual memory positions.
Due to performance issues: The given observation !pointers! can be copied or used directly without any copy.
Beware: If no copy of the observation pointers is created, the given observation pointers must exist as long as this data object (or the corresponding clustering object) exists.
Beware: In any case, the observations (not the pointers) must exist as long as this data object (or the corresponding clustering object) exists.
- Parameters
-
observationPointers | The first pointer of the observations |
numberObservations | The number of observations/pointers that are provided, with range [1, infinity) |
copyPointers | True, to copy the given observation pointers (not the observations); False, to simply use the given observation pointers as reference |