// @(#)root/tmva $Id: GeneticGenes.h 20882 2007-11-19 11:31:26Z rdm $ // Author: Peter Speckmayer /********************************************************************************** * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * * Package: TMVA * * Class : GeneticGenes * * Web : http://tmva.sourceforge.net * * * * Description: * * Genes definition for genetic algorithm * * * * Authors (alphabetical): * * Peter Speckmayer - CERN, Switzerland * * * * Copyright (c) 2005: * * CERN, Switzerland * * MPI-K Heidelberg, Germany * * * * 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_GeneticGenes #define ROOT_TMVA_GeneticGenes ////////////////////////////////////////////////////////////////////////// // // // GeneticGenes // // // // Genes definition for genetic algorithm // // // ////////////////////////////////////////////////////////////////////////// #include "Rtypes.h" #include namespace TMVA { class GeneticGenes { public: GeneticGenes() {} GeneticGenes( std::vector & f ); virtual ~GeneticGenes() {} void Clear(); void ClearResults(); std::vector& GetFactors() { return fFactors; } std::vector& GetResults() { return fResults; } private: std::vector fFactors; // stores the factors (coefficients) of one individual std::vector fResults; // stores the fitness-results of this individual ClassDef(GeneticGenes,0) // Genes definition for genetic algorithm }; } // namespace TMVA #endif