38 typedef std::vector<std::pair<double, DVector>>
Map;
44 value_type& operator [](
int i){
48 const value_type& operator [](
int i)
const{
52 Map::const_iterator
begin()
const {
59 Map::const_iterator
end()
const {
66 bool save(
const std::string& filename)
const;
69 DVector get_fuzzy(
double x)
const;
86 virtual DVector run(
const NormalizedHistogram& nh)
const = 0;
90 CMeans(
double k,
double epsilon, PInitializer class_center_initializer);
94 SparseProbmap run(
const SparseHistogram& histogram, DVector& class_centers)
const;
98 struct CMeansImpl *impl;
111 size_t get_size_param()
const;
std::shared_ptr< Initializer > PInitializer
the singleton that a plug-in handler really is
THandlerSingleton< TFactoryPluginHandler< CMeansInitializerPlugin > > CMeansInitializerPluginHandler
std::vector< std::pair< double, DVector > > Map
std::vector< std::pair< int, unsigned long > > SparseHistogram
TFactory< CMeans::Initializer > CMeansInitializerPlugin
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Map::const_iterator begin() const
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
std::vector< double > DVector
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
The base class for all plug-in created object.
static const char * data_descr
the Base class for all plugn handlers that deal with factory plugins.
static const char * type_descr
Map::const_iterator end() const
std::vector< std::pair< double, double > > NormalizedHistogram
std::pair< double, DVector > value_type
The generic base for all plug-ins.
The basic template of all plugin handlers.
#define NS_MIA_END
conveniance define to end the mia namespace