source: trunk/src/ConsensusInputRanker.cc @ 115

Last change on this file since 115 was 115, checked in by Peter, 19 years ago

added

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 731 bytes
Line 
1// $Id: ConsensusInputRanker.cc 115 2004-07-19 14:38:43Z peter $
2
3// System includes
4#include <vector>
5
6// Thep C++ Tools
7#include "InputRanker.h"
8#include "ConsensusInputRanker.h"
9#include "CrossValidation.h"
10
11namespace theplu {
12namespace cpptools { 
13
14  ConsensusInputRanker::ConsensusInputRanker(const gslapi::matrix& data,
15                                             const gslapi::vector& target,
16                                             Score& score_object,
17                                             const size_t nof_rankers,
18                                             const size_t k)
19    :k_(k),
20     nof_rankers_(nof_rankers)
21
22  {
23    CrossValidation cv = CrossValidation(target.size(), k_);
24    for (size_t i=0; i<k_; i++){
25      input_rankers_.push_back(InputRanker(data, target, score_object, cv.next()));
26    }
27 
28  }
29   
30
31}} // of namespace cpptools and namespace theplu
Note: See TracBrowser for help on using the repository browser.