Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 * *
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 * (see tmva/doc/LICENSE) *
23 **********************************************************************************/
24
25#include "TMVA/GeneticGenes.h"
27
28#include "Rtypes.h"
29#include "RtypesCore.h"
30
31/*! \class TMVA::GeneticGenes
32\ingroup TMVA
33
34Cut optimisation interface class for genetic algorithm.
35
36*/
37
38
39////////////////////////////////////////////////////////////////////////////////
40/// Constructor:
41/// set the factors of this individual
42
43TMVA::GeneticGenes::GeneticGenes( std::vector<Double_t> & f )
44{
45 fFactors = f;
46 fFitness = 0;
47}
48
50{
51 return first.fFitness < second.fFitness;
52}
#define f(i)
Definition RSha256.hxx:104
Basic types used by ROOT and required by TInterpreter.
bool Bool_t
Boolean (0=false, 1=true) (bool)
Definition RtypesCore.h:77
Cut optimisation interface class for genetic algorithm.
std::vector< Double_t > fFactors
Bool_t operator<(const GeneticGenes &, const GeneticGenes &)