Ignore:
Timestamp:
Feb 7, 2008, 7:47:34 PM (14 years ago)
Author:
Peter
Message:

Simplifying distance structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/IGP.h

    r1031 r1050  
    3030#include "yat/utility/vector.h"
    3131#include "yat/utility/yat_assert.h"
    32 #include "yat/statistics/distance.h"
    3332
    3433#include <cmath>
     
    7170  private:
    7271    utility::vector igp_;
     72    Distance distance_;
    7373
    7474    const MatrixLookup& matrix_;
     
    9494      for(u_int j=0; j<target_.size(); j++) {           
    9595        DataLookup1D b(matrix_,j,false);
    96         double dist=statistics::
    97           distance(a.begin,a.end(),b.begin(),
    98                           statistics::distance_traits<Distance>::distace());
     96        double dist=distance_(a.begin, a.end(), b.begin());
    9997        if(j!=i && dist<mindist) {
    10098          mindist=dist;
Note: See TracChangeset for help on using the changeset viewer.