69 |
11 Feb 06 |
jari |
// $Id$ |
69 |
11 Feb 06 |
jari |
2 |
|
95 |
05 Apr 06 |
jari |
3 |
/* |
95 |
05 Apr 06 |
jari |
Copyright (C) 2005, 2006 Jari Häkkinen |
95 |
05 Apr 06 |
jari |
5 |
|
95 |
05 Apr 06 |
jari |
This file is part of WeNNI, |
825 |
26 Nov 08 |
jari |
http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI |
95 |
05 Apr 06 |
jari |
8 |
|
95 |
05 Apr 06 |
jari |
WeNNI is free software; you can redistribute it and/or modify it |
95 |
05 Apr 06 |
jari |
under the terms of the GNU General Public License as published by |
824 |
26 Nov 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
95 |
05 Apr 06 |
jari |
(at your option) any later version. |
95 |
05 Apr 06 |
jari |
13 |
|
95 |
05 Apr 06 |
jari |
WeNNI is distributed in the hope that it will be useful, but WITHOUT |
95 |
05 Apr 06 |
jari |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
95 |
05 Apr 06 |
jari |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
95 |
05 Apr 06 |
jari |
License for more details. |
95 |
05 Apr 06 |
jari |
18 |
|
95 |
05 Apr 06 |
jari |
You should have received a copy of the GNU General Public License |
824 |
26 Nov 08 |
jari |
along with WeNNI. If not, see <http://www.gnu.org/licenses/>. |
95 |
05 Apr 06 |
jari |
21 |
*/ |
95 |
05 Apr 06 |
jari |
22 |
|
69 |
11 Feb 06 |
jari |
23 |
#ifndef _theplu_wenni_nni_parameter_ |
69 |
11 Feb 06 |
jari |
24 |
#define _theplu_wenni_nni_parameter_ |
69 |
11 Feb 06 |
jari |
25 |
|
69 |
11 Feb 06 |
jari |
26 |
#include <string> |
69 |
11 Feb 06 |
jari |
27 |
|
69 |
11 Feb 06 |
jari |
28 |
#include "nni.h" |
69 |
11 Feb 06 |
jari |
29 |
|
69 |
11 Feb 06 |
jari |
30 |
namespace theplu { |
69 |
11 Feb 06 |
jari |
31 |
namespace wenni { |
69 |
11 Feb 06 |
jari |
32 |
|
69 |
11 Feb 06 |
jari |
// class for command line options. |
69 |
11 Feb 06 |
jari |
34 |
class Parameter { |
69 |
11 Feb 06 |
jari |
35 |
|
69 |
11 Feb 06 |
jari |
36 |
public: |
69 |
11 Feb 06 |
jari |
37 |
Parameter(const Parameter&); // not implemented |
69 |
11 Feb 06 |
jari |
38 |
Parameter(const int argc,const char *argv[]); |
69 |
11 Feb 06 |
jari |
39 |
|
69 |
11 Feb 06 |
jari |
40 |
inline double beta(void) const { return beta_; } |
69 |
11 Feb 06 |
jari |
41 |
inline const std::string& data_file(void) const { return data_file_; } |
69 |
11 Feb 06 |
jari |
42 |
inline int neighbours(void) const { return neighbours_; } |
69 |
11 Feb 06 |
jari |
43 |
inline NNIalgorithm nni_algorithm(void) const { return nni_algorithm_; } |
69 |
11 Feb 06 |
jari |
44 |
inline double weight_cutoff(void) const { return weight_cutoff_; } |
69 |
11 Feb 06 |
jari |
45 |
inline const std::string& weight_file(void) const { return weight_file_; } |
69 |
11 Feb 06 |
jari |
46 |
inline bool weight_is_snr(void) const { return weight_is_snr_; } |
69 |
11 Feb 06 |
jari |
47 |
|
69 |
11 Feb 06 |
jari |
48 |
private: |
69 |
11 Feb 06 |
jari |
49 |
void analyse(void); |
69 |
11 Feb 06 |
jari |
50 |
void defaults(void); |
88 |
04 Apr 06 |
jari |
51 |
void version(void) const; |
69 |
11 Feb 06 |
jari |
52 |
|
69 |
11 Feb 06 |
jari |
53 |
double beta_; |
69 |
11 Feb 06 |
jari |
54 |
std::string data_file_; |
69 |
11 Feb 06 |
jari |
55 |
int neighbours_; |
69 |
11 Feb 06 |
jari |
56 |
NNIalgorithm nni_algorithm_; |
69 |
11 Feb 06 |
jari |
57 |
double weight_cutoff_; |
69 |
11 Feb 06 |
jari |
58 |
std::string weight_file_; |
69 |
11 Feb 06 |
jari |
59 |
bool weight_is_snr_; |
69 |
11 Feb 06 |
jari |
60 |
}; |
69 |
11 Feb 06 |
jari |
61 |
|
69 |
11 Feb 06 |
jari |
62 |
}} // of namespace wenni and namespace theplu |
69 |
11 Feb 06 |
jari |
63 |
|
69 |
11 Feb 06 |
jari |
64 |
#endif |