openModeller
Version 1.4.0
|
00001 // 00002 // GenericTemplate 00003 // 00004 // Description: 00005 // 00006 // 00007 // Author: CRIA <tim@linfiniti.com>, (C) 2004 00008 // 00009 // Copyright: See COPYING file that comes with this distribution 00010 // 00011 // 00012 #include "generictemplate.hh" 00013 00014 // This include is only necessary if you want to work with normalized values 00015 // ScaleNormalizer is one of the available normalizers. Choose the one you need. 00016 #include <openmodeller/ScaleNormalizer.hh> 00017 00022 GenericTemplate::GenericTemplate() 00023 { 00024 // Instantiate a normalizer object when it's necessary to work with normalized values 00025 _normalizerPtr = new ScaleNormalizer( 0.0, 1.0, true ); 00026 } 00027 00029 GenericTemplate::~GenericTemplate() 00030 { 00031 00032 00033 } 00034 00035 00036 00037 // 00038 // Methods used to build the model 00039 // 00040 00045 char * GenericTemplate::name() 00046 { 00047 return "GenericTemplate"; 00048 } //replace this name! 00049 00050 00057 int GenericTemplate::initialize( int ncycle ) 00058 { 00059 //set the class member that holds the number of environmental variables 00060 f_dim = samp->dim(); 00061 //set the class member that holds the number of occurences 00062 f_localityCount = samp->numOccurrences(); 00063 } 00064 00065 00070 int GenericTemplate::iterate() 00071 { 00072 00073 } 00074 00075 00082 int GenericTemplate::done() 00083 { 00084 00085 } 00086 00087 00088 // 00089 // Methods used to project the model 00090 // 00091 00092 00097 Scalar GenericTemplate::getValue( Scalar const *x ) const 00098 { 00099 00100 } 00101 00108 int GenericTemplate::getConvergence( Scalar *val ) 00109 { 00110 00111 }