SHOGUN  3.2.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
CustomMahalanobisDistance.h
浏览该文件的文档.
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 #ifdef HAVE_EIGEN3
15 
18 #include <shogun/lib/SGMatrix.h>
19 
20 namespace shogun
21 {
22 
31 {
32  public:
35 
43 
46 
48  virtual void cleanup();
49 
51  virtual const char* get_name() const;
52 
58 
59  protected:
69  virtual float64_t compute(int32_t idx_a, int32_t idx_b);
70 
71  private:
73  void register_params();
74 
75  private:
77  SGMatrix<float64_t> m_mahalanobis_matrix;
78 
79 }; /* class CCustomMahalanobisDistance */
80 
81 } /* namespace shogun */
82 
83 #endif /* HAVE_EIGEN3 */
84 
85 #endif /* CUSTOM_MAHALANOBIS_DISTANCE_ */
class RealDistance
Definition: RealDistance.h:20
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
EDistanceType
Definition: Distance.h:31
double float64_t
Definition: common.h:48
Class CustomMahalanobisDistance used to compute the distance between feature vectors and as ...
The class Features is the base class of all feature objects.
Definition: Features.h:62

SHOGUN 机器学习工具包 - 项目文档