35 #include <type_traits>
46 template <
typename DistFunc = Distance::L2>
50 "DistFunc must be a subclass of the Distance::Interface");
67 virtual ~SOM() =
default;
94 template <
typename InputType,
typename WeightFunc>
97 template <
typename InputType,
typename WeightFunc,
typename Uncerta
intyFunc>
99 UncertaintyFunc uncertainty_func)
const;
std::tuple< std::size_t, std::size_t, double > findBMU(const std::vector< double > &input) const
iter< cell_type, pointer_type, reference_type > iterator
virtual ~SOM()=default
Destructor.
typename CellGridType::const_iterator const_iterator
typename CellGridType::iterator iterator
iter< cell_type const, pointer_type const, reference_type const > const_iterator
std::pair< std::size_t, std::size_t > m_size
const std::pair< std::size_t, std::size_t > & getSize() const
decltype(ref_test< GridCellManagerTraits< GridCellManager >>(nullptr)) typedef reference_type
Reference type.
typename CellGridType::reference_type reference_type
reference_type operator()(std::size_t x, std::size_t y)
SOM(std::size_t nd, std::size_t x, std::size_t y, InitFunc::Signature init_func=InitFunc::zero)
std::size_t getDimensions() const
SOM & operator=(SOM< DistFunc > &&)=default