// @(#)root/tmva $Id: MetricManhattan.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 : MetricManhattan * * Web : http://tmva.sourceforge.net * * * * Description: * * Fitter using a Genetic Algorithm * * * * Authors (alphabetical): * * Peter Speckmayer <speckmay@mail.cern.ch> - 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_MetricManhattan #define ROOT_TMVA_MetricManhattan #include <vector> #ifndef ROOT_TMVA_IMetric #include "IMetric.h" #endif ////////////////////////////////////////////////////////////////////////// // // // MetricManhattan // // // // distance between two points in parameter space // // // ////////////////////////////////////////////////////////////////////////// namespace TMVA { class IMetric; class MetricManhattan : public IMetric { public: MetricManhattan(); virtual ~MetricManhattan() {} virtual Double_t Distance( std::vector<Double_t>& pointA, std::vector<Double_t>& pointB ); private: ClassDef(MetricManhattan,0) // calculates the "distance" between two points }; } // namespace TMVA #endif