source: trunk/c++_tools/classifier/utility.cc @ 581

Last change on this file since 581 was 581, checked in by Markus Ringnér, 15 years ago

Added class for in-group-proportions score. Removed gslapi::vector dependence on DataLookup1D by adding classifier::utility functions. Added operator[] to Target and DataLookup1D

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 410 bytes
Line 
1// $Id: utility.cc 581 2006-05-04 15:08:42Z markus $
2
3#include <c++_tools/classifier/utility.h>
4
5
6#include <c++_tools/classifier/DataLookup1D.h>
7#include <c++_tools/gslapi/vector.h>
8
9
10namespace theplu {
11namespace classifier {
12
13  void convert(const DataLookup1D& lookup, gslapi::vector& vector) 
14  {
15    vector=gslapi::vector(lookup.size());
16    for(u_int i=0; i<lookup.size(); i++)
17      vector(i)=lookup(i);
18  }
19
20}} // of namespace classifier and namespace theplu
Note: See TracBrowser for help on using the repository browser.