SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CustomMahalanobisDistance.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Fernando J. Iglesias Garcia
8  * Copyright (C) 2013 Fernando J. Iglesias Garcia
9  */
10 
11 #ifndef CUSTOM_MAHALANOBIS_DISTANCE_
12 #define CUSTOM_MAHALANOBIS_DISTANCE_
13 
14 #include <shogun/lib/config.h>
15 
16 
19 #include <shogun/lib/SGMatrix.h>
20 
21 namespace shogun
22 {
23 
32 {
33  public:
36 
44 
47 
49  virtual void cleanup();
50 
52  virtual const char* get_name() const;
53 
59 
60  protected:
70  virtual float64_t compute(int32_t idx_a, int32_t idx_b);
71 
72  private:
74  void register_params();
75 
76  private:
78  SGMatrix<float64_t> m_mahalanobis_matrix;
79 
80 }; /* class CCustomMahalanobisDistance */
81 
82 } /* namespace shogun */
83 
84 
85 #endif /* CUSTOM_MAHALANOBIS_DISTANCE_ */
class RealDistance
Definition: RealDistance.h:22
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
EDistanceType
Definition: Distance.h:32
double float64_t
Definition: common.h:50
Class CustomMahalanobisDistance used to compute the distance between feature vectors and as ...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68

SHOGUN Machine Learning Toolbox - Documentation