openModeller
Version 1.5.0
Main Page
Modules
Classes
Files
File List
File Members
generictemplate.cpp
Go to the documentation of this file.
1
//
2
// GenericTemplate
3
//
4
// Description:
5
//
6
//
7
// Author: CRIA <tim@linfiniti.com>, (C) 2004
8
//
9
// Copyright: See COPYING file that comes with this distribution
10
//
11
//
12
#include "
generictemplate.hh
"
13
14
// This include is only necessary if you want to work with normalized values
15
// ScaleNormalizer is one of the available normalizers. Choose the one you need.
16
#include <
openmodeller/ScaleNormalizer.hh
>
17
22
GenericTemplate::GenericTemplate
()
23
{
24
// Instantiate a normalizer object when it's necessary to work with normalized values
25
_normalizerPtr =
new
ScaleNormalizer
( 0.0, 1.0,
true
);
26
}
27
29
GenericTemplate::~GenericTemplate
()
30
{
31
32
33
}
34
35
36
37
//
38
// Methods used to build the model
39
//
40
45
char
* GenericTemplate::name()
46
{
47
return
"GenericTemplate"
;
48
}
//replace this name!
49
50
57
int
GenericTemplate::initialize
(
int
ncycle )
58
{
59
//set the class member that holds the number of environmental variables
60
f_dim
= samp->dim();
61
//set the class member that holds the number of occurences
62
f_localityCount
= samp->numOccurrences();
63
}
64
65
70
int
GenericTemplate::iterate
()
71
{
72
73
}
74
75
82
int
GenericTemplate::done
()
83
{
84
85
}
86
87
88
//
89
// Methods used to project the model
90
//
91
92
97
Scalar
GenericTemplate::getValue
(
Scalar
const
*x )
const
98
{
99
100
}
101
108
int
GenericTemplate::getConvergence
(
Scalar
*val )
109
{
110
111
}
GenericTemplate::done
int done() const
Definition:
generictemplate.cpp:82
GenericTemplate::GenericTemplate
GenericTemplate()
Definition:
generictemplate.cpp:22
GenericTemplate::f_localityCount
int f_localityCount
Definition:
generictemplate.hh:106
generictemplate.hh
Scalar
double Scalar
Type of map values.
Definition:
om_defs.hh:39
GenericTemplate::iterate
int iterate()
Definition:
generictemplate.cpp:70
GenericTemplate::getConvergence
int getConvergence(Scalar *val)
Definition:
generictemplate.cpp:108
GenericTemplate::getValue
Scalar getValue(Scalar const *x) const
Definition:
generictemplate.cpp:97
ScaleNormalizer.hh
ScaleNormalizer
Definition:
ScaleNormalizer.hh:32
GenericTemplate::f_dim
int f_dim
Dimension of environmental space.
Definition:
generictemplate.hh:104
GenericTemplate::~GenericTemplate
~GenericTemplate()
Definition:
generictemplate.cpp:29
GenericTemplate::initialize
int initialize(int ncycle)
Definition:
generictemplate.cpp:57
src
algorithms
generictemplate.cpp
Generated on Thu Jan 8 2015 17:05:09 for openModeller by
1.8.6