32 #ifndef MEDIAN_HEURISTIC_H__ 33 #define MEDIAN_HEURISTIC_H__ 43 class CCustomDistance;
44 template <
typename T>
class SGVector;
45 template <
typename T>
class SGMatrix;
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS 50 class MedianHeuristic :
public KernelSelection
53 MedianHeuristic(KernelManager&, CMMD*);
54 MedianHeuristic(
const MedianHeuristic& other)=
delete;
56 MedianHeuristic& operator=(
const MedianHeuristic& other)=
delete;
57 virtual CKernel* select_kernel()
override;
58 virtual SGVector<float64_t> get_measure_vector()
override;
59 virtual SGMatrix<float64_t> get_measure_matrix()
override;
61 virtual void init_measures()
override;
62 virtual void compute_measures()
override;
63 std::shared_ptr<CCustomDistance>
distance;
64 SGVector<float64_t> measures;
67 #endif // DOXYGEN_SHOULD_SKIP_THIS 72 #endif // MEDIAN_HEURISTIC_H__ float distance(CJLCoverTreePoint p1, CJLCoverTreePoint p2, float64_t upper_bound)
all of classes and functions are contained in the shogun namespace