00001 // @(#)root/tmva $Id: GeneticGenes.cxx 29122 2009-06-22 06:51:30Z brun $ 00002 // Author: Peter Speckmayer 00003 00004 /********************************************************************************** 00005 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * 00006 * Package: TMVA * 00007 * Class : TMVA::GeneticGenes * 00008 * Web : http://tmva.sourceforge.net * 00009 * * 00010 * Description: * 00011 * Implementation (see header for description) * 00012 * * 00013 * Authors (alphabetical): * 00014 * Peter Speckmayer <speckmay@mail.cern.ch> - CERN, Switzerland * 00015 * * 00016 * Copyright (c) 2005: * 00017 * CERN, Switzerland * 00018 * MPI-K Heidelberg, Germany * 00019 * * 00020 * Redistribution and use in source and binary forms, with or without * 00021 * modification, are permitted according to the terms listed in LICENSE * 00022 * (http://tmva.sourceforge.net/LICENSE) * 00023 **********************************************************************************/ 00024 00025 #include "TMVA/GeneticGenes.h" 00026 #include "TMVA/GeneticPopulation.h" 00027 00028 //_______________________________________________________________________ 00029 // 00030 // Cut optimisation interface class for genetic algorithm // 00031 //_______________________________________________________________________ 00032 00033 ClassImp(TMVA::GeneticGenes) 00034 00035 //_______________________________________________________________________ 00036 TMVA::GeneticGenes::GeneticGenes( std::vector<Double_t> & f ) 00037 { 00038 // Constructor: 00039 // set the factors of this individual 00040 fFactors = f; 00041 fFitness = 0; 00042 } 00043 00044 Bool_t TMVA::operator <(const TMVA::GeneticGenes& first, const TMVA::GeneticGenes& second) 00045 { 00046 return first.fFitness < second.fFitness; 00047 }