Changeset 581 for trunk/c++_tools/gslapi


Ignore:
Timestamp:
May 4, 2006, 5:08:42 PM (17 years ago)
Author:
Markus Ringnér
Message:

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

Location:
trunk/c++_tools/gslapi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/gslapi/vector.cc

    r570 r581  
    3030#include <c++_tools/utility/stl_utility.h>
    3131#include <c++_tools/utility/utility.h>
    32 #include <c++_tools/classifier/DataLookup1D.h>
     32
    3333
    3434#include <iostream>
     
    165165
    166166
    167   vector::vector(const classifier::DataLookup1D& data)
    168     : view_(NULL), const_view_(NULL)
    169   {
    170     v_ = gsl_vector_alloc(data.size());
    171     for (size_t i=0; i<data.size(); i++)
    172       gsl_vector_set( v_, i, data(i) );
    173   }
    174 
    175 
    176 
    177167  vector::~vector(void)
    178168  {
  • trunk/c++_tools/gslapi/vector.h

    r570 r581  
    3939
    4040namespace theplu {
    41 namespace classifier {
    42   class DataLookup1D;
    43 }
    4441namespace gslapi {
    4542
     
    183180    explicit vector(std::istream &, char sep='\0') throw (utility::IO_error,std::exception);
    184181
    185     ///
    186     ///
    187     ///
    188     explicit vector(const classifier::DataLookup1D&);
    189182
    190183    ///
Note: See TracChangeset for help on using the changeset viewer.