Ignore:
Timestamp:
Sep 7, 2006, 7:11:18 AM (15 years ago)
Author:
Peter
Message:

fixes #132 and #95, and refs #135 replaced bool owner in DataLookup2D with ref_count u_int*. When the DataLookup2D does not own underlying data ref_count=NULL otherwise it points to a u_int telling how many owner there are of the data. When the counter reaches zero the data is deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/FeatureSelectorIR.cc

    r624 r640  
    44
    55#include "FeatureSelector.h"
     6#include "MatrixLookup.h"
    67#include "InputRanker.h"
    78
     
    3637  void FeatureSelectorIR::update(const MatrixLookup& data, const Target& target)
    3738  {
     39    assert(data.columns()==target.size());
    3840    InputRanker ir = InputRanker(data, target, score_);
    3941    features_.resize(N_);
    4042    std::copy(ir.rank().begin()+first_, ir.rank().begin()+first_+N_,
    4143              features_.begin());
    42    
    4344  }
    4445
Note: See TracChangeset for help on using the changeset viewer.