class TMVA::MetricManhattan: public TMVA::IMetric


 Manhattan metric. The distance d between two points x and y is defined as


d = #sqrt{#sum_{i} (x_{i}-y_{i})}


Function Members (Methods)

public:
virtual~MetricManhattan()
static TClass*Class()
virtual Double_tDistance(vector<Double_t>& pointA, vector<Double_t>& pointB)
vector<Double_t>*TMVA::IMetric::GetParameters()
virtual TClass*IsA() const
TMVA::MetricManhattanMetricManhattan()
TMVA::MetricManhattanMetricManhattan(const TMVA::MetricManhattan&)
TMVA::MetricManhattan&operator=(const TMVA::MetricManhattan&)
voidTMVA::IMetric::SetParameters(vector<Double_t>* parameters)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

protected:
vector<Double_t>*TMVA::IMetric::fParameters

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

MetricManhattan(const TMVA::MetricManhattan& )
 constructor
Double_t Distance(vector<Double_t>& pointA, vector<Double_t>& pointB)
 the Manhatten distance between point A and B:
 linear sum of differences between A in B in all variables
MetricManhattan(const TMVA::MetricManhattan& )
virtual ~MetricManhattan()
{}

Author: Peter Speckmayer
Last change: root/tmva $Id: MetricManhattan.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:48
Copyright (c) 2005: *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.