Logo ROOT   6.08/07
Reference Guide
GeneticGenes.cxx
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Peter Speckmayer
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : TMVA::GeneticGenes *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Implementation (see header for description) *
12  * *
13  * Authors (alphabetical): *
14  * Peter Speckmayer <speckmay@mail.cern.ch> - CERN, Switzerland *
15  * *
16  * Copyright (c) 2005: *
17  * CERN, Switzerland *
18  * MPI-K Heidelberg, Germany *
19  * *
20  * Redistribution and use in source and binary forms, with or without *
21  * modification, are permitted according to the terms listed in LICENSE *
22  * (http://tmva.sourceforge.net/LICENSE) *
23  **********************************************************************************/
24 
25 #include "TMVA/GeneticGenes.h"
26 #include "TMVA/GeneticPopulation.h"
27 
28 #include "Rtypes.h"
29 #include "RtypesCore.h"
30 //_______________________________________________________________________
31 //
32 // Cut optimisation interface class for genetic algorithm //
33 //_______________________________________________________________________
34 
36 
37 ////////////////////////////////////////////////////////////////////////////////
38 /// Constructor:
39 /// set the factors of this individual
40 
42 {
43  fFactors = f;
44  fFitness = 0;
45 }
46 
48 {
49  return first.fFitness < second.fFitness;
50 }
bool Bool_t
Definition: RtypesCore.h:59
STL namespace.
#define ClassImp(name)
Definition: Rtypes.h:279
double f(double x)
double Double_t
Definition: RtypesCore.h:55
Bool_t operator<(const GeneticGenes &, const GeneticGenes &)
Abstract ClassifierFactory template that handles arbitrary types.
Definition: first.py:1