Ignore:
Timestamp:
Mar 5, 2007, 7:58:30 PM (15 years ago)
Author:
Peter
Message:

Refs #101

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/utility.cc

    r680 r779  
    2424#include "utility.h"
    2525#include "DataLookup1D.h"
     26#include "DataLookupWeighted1D.h"
    2627#include "yat/utility/vector.h"
    2728
     
    3839  }
    3940
     41  void convert(const DataLookupWeighted1D& lookup, utility::vector& value,
     42               utility::vector& weight)
     43  {
     44   
     45    value=utility::vector(lookup.size());
     46    weight=utility::vector(lookup.size());
     47    for(u_int i=0; i<lookup.size(); i++){
     48      value(i)=lookup.data(i);
     49      weight(i)=lookup.weight(i);
     50    }
     51  }
     52
    4053}}} // of namespace classifier, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.