source: trunk/test/igp_test.cc @ 1874

Last change on this file since 1874 was 1874, checked in by Peter, 13 years ago

merge patch release 0.5.2 into trunk. Delta 0.5.2 - 0.5.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1// $Id: igp_test.cc 1874 2009-03-17 22:09:01Z peter $
2
3/*
4  Copyright (C) 2009 Peter Johansson
5
6  This file is part of the yat library, http://dev.thep.lu.se/yat
7
8  The yat library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 3 of the
11  License, or (at your option) any later version.
12
13  The yat library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with yat. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#include "Suite.h"
23
24#include "yat/classifier/IGP.h"
25#include "yat/classifier/MatrixLookup.h"
26#include "yat/classifier/Target.h"
27#include "yat/statistics/EuclideanDistance.h"
28
29#include <cstddef>
30#include <fstream>
31#include <iostream>
32#include <sstream>
33
34using namespace theplu::yat;
35
36int main(int argc,char* argv[])
37{ 
38  test::Suite suite(argc, argv);
39  suite.err() << "testing IGP" << std::endl;
40
41  classifier::MatrixLookup ml(10,10);
42  std::vector<std::string> labels(10, "yes");
43  labels[0]="no";
44  classifier::Target target(labels);
45  classifier::IGP<statistics::EuclideanDistance> igp(ml, target);
46
47  return suite.return_value();
48}
Note: See TracBrowser for help on using the repository browser.