npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
discretizedDistance.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_DISCRETIZEDDISTANCE_HH_
2 #define NPSTAT_DISCRETIZEDDISTANCE_HH_
3 
4 /*!
5 // \file discretizedDistance.hh
6 //
7 // \brief Utilities for calculating distances between two discretized functions
8 //
9 // Author: I. Volobouev
10 //
11 // February 2014
12 */
13 
14 namespace npstat {
15  template<typename Numeric>
16  double discretizedL1(const Numeric* a1, unsigned long length1,
17  const Numeric* a2, unsigned long length2,
18  double cellSize, bool normalizeAsDensity=false);
19 
20  template<typename Numeric>
21  double discretizedL2(const Numeric* a1, unsigned long length1,
22  const Numeric* a2, unsigned long length2,
23  double cellSize, bool normalizeAsDensity=false);
24 }
25 
26 #include "npstat/nm/discretizedDistance.icc"
27 
28 #endif // NPSTAT_DISCRETIZEDDISTANCE_HH_
Definition: AbsArrayProjector.hh:14