32 template<
class Aggregator>
49 template<
class Aggregator >
63 typedef typename std::vector<PatternType> ListType;
81 template<
class SrcAggregator>
84 static_cast<ParamType&
>(*this) =
static_cast<const ParamType&
>(src);
87 templates.push_back( PatternType ( *i ) );
101 inline unsigned int Size()
const {
108 static_cast<ParamType &
>(*this) = src;
112 const ParamType & GetParams()
const {
113 return static_cast<const ParamType &
>(*this);
136 template<
class SrcAggregator>
138 static_cast<ParamType&
>(*this) =
static_cast<const ParamType&
>(src);
140 n_patternN=src.n_patternN;
144 templates.push_back( PatternType ( *i ) );
149 void Import(
const DataType & data,
int category);
157 template<
class Aggregator>
184 template<
class Aggregator >
194 templates.push_back(PatternType(data, category));
void Insert(const PatternType &p)
add a new pattern to the list
Definition: DataSet.h:117
unsigned int n_patternP
Definition: DataSet.h:70
void Release()
Force, manually, to release memory in data.
Definition: DataSet.h:127
Types involved in boosting.
DataSetHandle< Aggregator > ViewType
a soft copy of the set
Definition: DataSet.h:54
unsigned int Size() const
Return number of allocated samples (complete size of DataSet)
Definition: DataSet.h:101
void operator=(const DataSetHandle< SrcAggregator > &src)
Definition: DataSet.h:137
ListType templates
a collection of Pattern used in this dataset
Definition: DataSet.h:73
void Clear()
Reset (but not release memory)
Definition: DataSet.h:94
DataSetHandle(const DataSetHandle< SrcAggregator > &src)
Definition: DataSet.h:82
macro used to declare a PatternAggregator
void SetParams(const ParamType &src)
Definition: DataSet.h:107
DataSet< Aggregator > StoreType
an hard copy of the set
Definition: DataSet.h:57
void Import(const DataType &data, int category)
Definition: DataSet.h:185