source: orange/source/orange/gslconversions.hpp @ 9532:2c6a8bb6ec89

Revision 9532:2c6a8bb6ec89, 1.5 KB checked in by janezd <janez.demsar@…>, 2 years ago (diff)

Conversion to numpy now supports multiple classes (Ticket #1012)

Line 
1/*
2    This file is part of Orange.
3   
4    Copyright 1996-2010 Faculty of Computer and Information Science, University of Ljubljana
5    Contact: janez.demsar@fri.uni-lj.si
6
7    Orange is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11
12    Orange is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with Orange.  If not, see <http://www.gnu.org/licenses/>.
19*/
20
21
22#ifndef __GSLCONVERSIONS_HPP
23#define __GSLCONVERSIONS_HPP
24
25
26#define GSL_FREE(O,tpe) { if (O) { gsl_##tpe##_free(O); O = NULL; }}
27
28#include "gsl_imports.hpp"
29
30#include "root.hpp"
31
32WRAPPER(ExampleGenerator)
33void exampleGenerator2gsl(PExampleGenerator egen, const int &weightID, const char *contents, const int &multiTreatment,
34                          void *&X, void *&y, void *&w, int &rows, int &columns);
35
36void parseMatrixContents(PExampleGenerator egen, const int &weightID, const char *contents, const int &multiTreatment,
37                         bool &hasClass, bool &classVector, bool &multiclassVector, bool &weightVector, bool &classIsDiscrete, int &columns,
38                         vector<bool> &include);
39
40#endif
Note: See TracBrowser for help on using the repository browser.