Changeset 1158 for trunk/yat/classifier/IGP.h
 Timestamp:
 Feb 26, 2008, 2:49:38 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/classifier/IGP.h
r1120 r1158 51 51 52 52 public: 53 /// 54 /// Constructor taking the training data and the target vector and 55 /// as input. 56 /// 57 IGP(const MatrixLookup&, const Target&); 58 59 53 60 /// 54 61 /// Constructor taking the training data, the target vector and 55 62 /// the distance measure as input. 56 63 /// 57 IGP(const MatrixLookup&, const Target& );64 IGP(const MatrixLookup&, const Target&, const Distance&); 58 65 59 66 /// … … 69 76 70 77 private: 78 void calculate(); 79 71 80 utility::Vector igp_; 72 81 Distance distance_; … … 83 92 : matrix_(data), target_(target) 84 93 { 94 calculate(); 95 } 96 97 template <typename Distance> 98 IGP<Distance>::IGP(const MatrixLookup& data, const Target& target, const Distance& dist) 99 : matrix_(data), target_(target), distance_(dist) 100 { 101 calculate(); 102 } 103 104 105 template <typename Distance> 106 IGP<Distance>::~IGP() 107 { 108 } 109 110 template <typename Distance> 111 void IGP<Distance>::calculate() 112 { 85 113 utility::yat_assert<std::runtime_error>(target_.size()==matrix_.columns()); 86 114 … … 108 136 } 109 137 } 110 111 template <typename Distance>112 IGP<Distance>::~IGP()113 {114 }115 138 116 139
Note: See TracChangeset
for help on using the changeset viewer.