Changeset 1164 for trunk/yat/classifier
- Timestamp:
- Feb 26, 2008, 7:36:52 PM (16 years ago)
- Location:
- trunk/yat/classifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/KNN.h
r1162 r1164 126 126 127 127 Distance distance_; 128 129 128 NeighborWeighting weighting_; 130 129 … … 214 213 KNN<Distance, NeighborWeighting>::make_classifier() const 215 214 { 216 KNN* knn=new KNN<Distance, NeighborWeighting>(); 215 // All private members should be copied here to generate an 216 // identical but untrained classifier 217 KNN* knn=new KNN<Distance, NeighborWeighting>(distance_); 218 knn->weighting_=this->weighting_; 217 219 knn->k(this->k()); 218 220 return knn; -
trunk/yat/classifier/NCC.h
r1162 r1164 159 159 NCC<Distance>::make_classifier() const 160 160 { 161 return new NCC<Distance>(); 161 // All private members should be copied here to generate an 162 // identical but untrained classifier 163 return new NCC<Distance>(distance_); 162 164 } 163 165
Note: See TracChangeset
for help on using the changeset viewer.