Ignore:
Timestamp:
Apr 30, 2005, 3:39:27 PM (16 years ago)
Author:
Peter
Message:

modified includes in tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/test/inputranker_test.cc

    r300 r301  
    11// $Id$
    22
    3 // C++ tools include
    4 ////////////////////
    5 #include "InputRanker.h"
     3#include <c++_tools/svm/InputRanker.h>
     4#include <c++_tools/statistics/ROC.h>
     5#include <c++_tools/gslapi/matrix.h>
    66
    7 #include "ROC.h"
    8 
    9 // Standard includes
    10 ////////////////////
    117#include <cstdlib>
    128#include <fstream>
    139#include <iostream>
    14 //#include <vector>
    1510
    16 using namespace std;
     11using namespace theplu;
    1712
    1813int main()
    1914
    20   ifstream is("data/rank_data.txt");
    21   theplu::gslapi::matrix data(is);
     15  std::ifstream is("data/rank_data.txt");
     16  gslapi::matrix data(is);
    2217  is.close();
    2318
     
    2621  is.close();
    2722
    28   theplu::cpptools::ROC roc;
    29   theplu::cpptools::InputRanker ir(data,target,roc);
     23  statistics::ROC roc;
     24  svm::InputRanker ir(data,target,roc);
    3025
    3126  if (ir.id(0)!=2 || ir.id(1)!=0 || ir.id(2)!=1){
    32     cerr << "wrong id" << endl;
     27    std::cerr << "wrong id" << std::endl;
    3328    return -1;
    3429  }
    3530 
    3631  if (ir.rank(0)!=1 || ir.rank(1)!=2 || ir.rank(2)!=0){
    37     cerr << "wrong rank" << endl;
     32    std::cerr << "wrong rank" << std::endl;
    3833    return -1;
    3934  }
Note: See TracChangeset for help on using the changeset viewer.