#include <shark/Data/WeightedDataset.h>
Public Types | |
typedef WeightedDataPair< decltype(getBatchElement(std::declval< DataBatchType & >), 0)), decltype(getBatchElement(std::declval< WeightBatchType & >), 0)) > | reference |
typedef WeightedDataPair< decltype(getBatchElement(std::declval< typename std::add_const< DataBatchType >::type & >), 0)), decltype(getBatchElement(std::declval< typename std::add_const< WeightBatchType >::type & >), 0)) > | const_reference |
typedef IndexingIterator< WeightedDataBatch > | iterator |
typedef IndexingIterator< WeightedDataBatch const > | const_iterator |
Public Member Functions | |
template<class D , class W > | |
WeightedDataBatch (D &&data, W &&weight) | |
template<class Pair > | |
WeightedDataBatch (std::size_t size, Pair const &p) | |
template<class I , class L > | |
WeightedDataBatch & | operator= (WeightedDataBatch< I, L > const &batch) |
std::size_t | size () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reference | operator[] (std::size_t i) |
const_reference | operator[] (std::size_t i) const |
Public Attributes | |
DataBatchType | data |
WeightBatchType | weight |
Definition at line 91 of file WeightedDataset.h.
typedef IndexingIterator<WeightedDataBatch const> shark::WeightedDataBatch< DataBatchType, WeightBatchType >::const_iterator |
Definition at line 112 of file WeightedDataset.h.
typedef WeightedDataPair< decltype(getBatchElement(std::declval<typename std::add_const<DataBatchType>::type&>),0)), decltype(getBatchElement(std::declval<typename std::add_const<WeightBatchType>::type&>),0)) > shark::WeightedDataBatch< DataBatchType, WeightBatchType >::const_reference |
Definition at line 110 of file WeightedDataset.h.
typedef IndexingIterator<WeightedDataBatch> shark::WeightedDataBatch< DataBatchType, WeightBatchType >::iterator |
Definition at line 111 of file WeightedDataset.h.
typedef WeightedDataPair< decltype(getBatchElement(std::declval<DataBatchType&>),0)), decltype(getBatchElement(std::declval<WeightBatchType&>),0)) > shark::WeightedDataBatch< DataBatchType, WeightBatchType >::reference |
Definition at line 106 of file WeightedDataset.h.
|
inline |
Definition at line 115 of file WeightedDataset.h.
|
inline |
Definition at line 121 of file WeightedDataset.h.
|
inline |
Definition at line 136 of file WeightedDataset.h.
|
inline |
Definition at line 139 of file WeightedDataset.h.
|
inline |
Definition at line 143 of file WeightedDataset.h.
|
inline |
Definition at line 146 of file WeightedDataset.h.
|
inline |
Definition at line 126 of file WeightedDataset.h.
References shark::WeightedDataBatch< DataBatchType, WeightBatchType >::data, and shark::WeightedDataBatch< DataBatchType, WeightBatchType >::weight.
|
inline |
Definition at line 150 of file WeightedDataset.h.
References shark::getBatchElement().
|
inline |
Definition at line 153 of file WeightedDataset.h.
References shark::getBatchElement().
|
inline |
Definition at line 132 of file WeightedDataset.h.
DataBatchType shark::WeightedDataBatch< DataBatchType, WeightBatchType >::data |
Definition at line 96 of file WeightedDataset.h.
Referenced by shark::WeightedDataBatch< DataBatchType, WeightBatchType >::operator=(), and shark::swap().
WeightBatchType shark::WeightedDataBatch< DataBatchType, WeightBatchType >::weight |
Definition at line 97 of file WeightedDataset.h.
Referenced by shark::WeightedDataBatch< DataBatchType, WeightBatchType >::operator=(), and shark::swap().