Ignore:
Timestamp:
Mar 17, 2007, 1:10:44 AM (15 years ago)
Author:
Peter
Message:

added constructor for DataLookup1D from a utility::vector

File:
1 edited

Legend:

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

    r766 r815  
    7373
    7474
     75  DataLookup1D::DataLookup1D(const utility::vector& v)
     76    : column_vector_(true), index_(0), owner_(true)
     77  {
     78    utility::matrix* m = new utility::matrix(1,v.size());
     79    for (size_t i=0; i<v.size(); ++i){
     80      (*m)(0,i)=v(i);
     81    }
     82    matrix_ = new MatrixLookup(*m, true);
     83  }
     84
     85
    7586  DataLookup1D::~DataLookup1D()
    7687  {
Note: See TracChangeset for help on using the changeset viewer.