Loading [MathJax]/extensions/tex2jax.js
ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tmva
tmva
src
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
//_______________________________________________________________________
29
//
30
// Cut optimisation interface class for genetic algorithm //
31
//_______________________________________________________________________
32
33
ClassImp
(
TMVA::GeneticGenes
)
34
35
////////////////////////////////////////////////////////////////////////////////
36
/// Constructor:
37
/// set the factors of this individual
38
39
TMVA
::GeneticGenes::GeneticGenes(
std
::vector<
Double_t
> &
f
)
40
{
41
fFactors =
f
;
42
fFitness = 0;
43
}
44
45
Bool_t
TMVA::operator <
(
const
TMVA::GeneticGenes
& first,
const
TMVA::GeneticGenes
& second)
46
{
47
return
first.
fFitness
< second.
fFitness
;
48
}
GeneticPopulation.h
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
std
STL namespace.
TMVA::GeneticGenes
Definition:
GeneticGenes.h:43
TMVA::GeneticGenes::fFitness
Double_t fFitness
Definition:
GeneticGenes.h:61
f
double f(double x)
Definition:
testIntegration.cxx:12
Double_t
double Double_t
Definition:
RtypesCore.h:55
TMVA::operator<
Bool_t operator<(const GeneticGenes &, const GeneticGenes &)
Definition:
GeneticGenes.cxx:45
GeneticGenes.h
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
MethodPyAdaBoost.h:29
ClassImp
ClassImp(TMVA::GeneticGenes) TMVA
Constructor: set the factors of this individual.
Definition:
GeneticGenes.cxx:33