ROOT
master
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
"
26
#include "
TMVA/GeneticPopulation.h
"
27
28
#include "
Rtypes.h
"
29
#include "
RtypesCore.h
"
30
31
/*! \class TMVA::GeneticGenes
32
\ingroup TMVA
33
34
Cut optimisation interface class for genetic algorithm.
35
36
*/
37
38
ClassImp
(
TMVA::GeneticGenes
);
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Constructor:
42
/// set the factors of this individual
43
44
TMVA::GeneticGenes::GeneticGenes
( std::vector<Double_t> &
f
)
45
{
46
fFactors
=
f
;
47
fFitness
= 0;
48
}
49
50
Bool_t
TMVA::operator <
(
const
TMVA::GeneticGenes
& first,
const
TMVA::GeneticGenes
& second)
51
{
52
return
first.
fFitness
< second.
fFitness
;
53
}
GeneticGenes.h
GeneticPopulation.h
f
#define f(i)
Definition
RSha256.hxx:104
RtypesCore.h
Bool_t
bool Bool_t
Definition
RtypesCore.h:63
Rtypes.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
TMVA::GeneticGenes
Cut optimisation interface class for genetic algorithm.
Definition
GeneticGenes.h:41
TMVA::GeneticGenes::fFactors
std::vector< Double_t > fFactors
Definition
GeneticGenes.h:58
TMVA::GeneticGenes::GeneticGenes
GeneticGenes()
Definition
GeneticGenes.h:45
TMVA::GeneticGenes::fFitness
Double_t fFitness
Definition
GeneticGenes.h:59
TMVA::operator<
Bool_t operator<(const GeneticGenes &, const GeneticGenes &)
tmva
tmva
src
GeneticGenes.cxx
ROOT master - Reference Guide Generated on Wed Dec 11 2024 09:39:50 (GVA Time) using Doxygen 1.9.8