EvolvingObjects
eoEsSimple.h
00001 /* (c) GeNeura Team, 2000 - EEAAX 1999, Maarten Keijzer 2000
00002 
00003 This library is free software; you can redistribute it and/or modify it under
00004 the terms of the GNU Lesser General Public License as published by the Free
00005 Software Foundation; either version 2 of the License, or (at your option) any
00006 later version.
00007 
00008 This library is distributed in the hope that it will be useful, but WITHOUT ANY
00009 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
00010 PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00011 
00012 You should have received a copy of the GNU Lesser General Public License along
00013 with this library; if not, write to the Free Software Foundation, Inc., 59
00014 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00015 
00016 Contact: http://eodev.sourceforge.net
00017          todos@geneura.ugr.es, http://geneura.ugr.es
00018          Marc.Schoenauer@polytechnique.fr
00019          mak@dhi.dk
00020  */
00021 
00022 
00023 #ifndef _eoEsSimple_h
00024 #define _eoEsSimple_h
00025 
00026 #include <EO.h>
00027 #include <vector>
00028 
00029 #include <eoVector.h>
00030 
00041 template <class Fit>
00042 class eoEsSimple : public eoVector<Fit, double>
00043 {
00044 public :
00045 
00046     typedef double Type;
00047 
00048     eoEsSimple() : eoVector<Fit, double>() {}
00049 
00050     virtual std::string className() const { return "eoEsSimple"; }
00051 
00052     void printOn(std::ostream& os) const
00053     {
00054         eoVector<Fit,double>::printOn(os);
00055         os << ' ' << stdev << ' ';
00056     }
00057 
00058     void readFrom(std::istream& is)
00059     {
00060         eoVector<Fit,double>::readFrom(is);
00061         is >> stdev;
00062     }
00063 
00064     double stdev;
00065 };
00066 
00067 #endif
00068 
00069 
00070 
00071 // Local Variables:
00072 // coding: iso-8859-1
00073 // mode:C++
00074 // c-file-style: "Stroustrup"
00075 // comment-column: 35
00076 // fill-column: 80
00077 // End:
 All Classes Namespaces Files Functions Variables Typedefs Friends