// @(#)root/tmva $Id: IMetric.h 21630 2008-01-10 19:40:44Z brun $ // Author: Peter Speckmayer /********************************************************************************** * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * * Package: TMVA * * Class : IMetric * * Web : http://tmva.sourceforge.net * * * * Description: * * Fitter using a 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_IMetric #define ROOT_TMVA_IMetric #include #include "Rtypes.h" ////////////////////////////////////////////////////////////////////////// // // // IMetric // // // // Interface for a metric, depending on the implementation the meaning // // of distance in space changes. // // // ////////////////////////////////////////////////////////////////////////// namespace TMVA { class IMetric { public: IMetric(); virtual ~IMetric() {} virtual Double_t Distance( std::vector& pointA, std::vector& pointB ) = 0; void SetParameters( std::vector* parameters ) { fParameters = parameters; }; std::vector* GetParameters() { return fParameters; }; protected: std::vector* fParameters; private: ClassDef(IMetric,0) // calculates the "distance" between two points }; } // namespace TMVA #endif