// @(#)root/tmva $Id: GeneticANN.h,v 1.6 2006/11/20 15:35:28 brun Exp $ // Author: Andreas Hoecker, Matt Jachowski, Peter Speckmayer, Helge Voss, Kai Voss /********************************************************************************** * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * * Package: TMVA * * Class : GeneticANN * * Web : http://tmva.sourceforge.net * * * * Description: * * User class for genetics algorithm * * * * Authors (alphabetical): * * Andreas Hoecker - CERN, Switzerland * * Matt Jachowski - Stanford University, USA * * Peter Speckmayer - CERN, Switzerland * * Helge Voss - MPI-K Heidelberg, Germany * * Kai Voss - U. of Victoria, Canada * * * * Copyright (c) 2005: * * CERN, Switzerland, * * U. of Victoria, Canada, * * MPI-K Heidelberg, Germany , * * LAPP, Annecy, France * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted according to the terms listed in LICENSE * * (http://tmva.sourceforge.net/LICENSE) * **********************************************************************************/ #ifndef ROOT_TMVA_GeneticANN #define ROOT_TMVA_GeneticANN ////////////////////////////////////////////////////////////////////////// // // // GeneticANN // // // // Cut optimisation interface class for genetic algorithm // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TMVA_GeneticBase #include "TMVA/GeneticBase.h" #endif #ifndef ROOT_TMVA_MethodMLP #include "TMVA/MethodMLP.h" #endif namespace TMVA { class GeneticANN : public GeneticBase { public: GeneticANN( Int_t size, std::vector ranges, TMVA::MethodMLP* methodMLP); virtual ~GeneticANN() {} Double_t FitnessFunction( const std::vector & parameters ); Double_t NewFitness( Double_t oldF, Double_t newF ) { return oldF + newF; } private: TMVA::MethodMLP* fMethodMLP; // pointer to method ClassDef(GeneticANN,0) // ANN interface class for genetic algorithm ; }; } // namespace TMVA #endif