npstat
is hosted by
Hepforge
,
IPPP Durham
Home
Subversion
Tracker
Wiki
NPStat
5.10.0
nm
EquidistantSequence.hh
Go to the documentation of this file.
1
#ifndef NPSTAT_EQUIDISTANTSEQUENCE_HH_
2
#define NPSTAT_EQUIDISTANTSEQUENCE_HH_
3
4
/*!
5
// \file EquidistantSequence.hh
6
//
7
// \brief Equidistant sequences of points in either linear or log space
8
//
9
// Author: I. Volobouev
10
//
11
// March 2009
12
*/
13
14
#include <vector>
15
16
namespace
npstat
{
17
/**
18
// A sequence of points equidistant in linear space. Note that
19
// std::vector destructor is not virtual, so do not destroy this
20
// class by base pointer or reference.
21
*/
22
class
EquidistantInLinearSpace
:
public
std::vector<double>
23
{
24
public
:
25
EquidistantInLinearSpace
(
double
minScale,
double
maxScale,
26
unsigned
nScales);
27
inline
virtual
~
EquidistantInLinearSpace
() {}
28
29
private
:
30
EquidistantInLinearSpace
();
31
};
32
33
/**
34
// A sequence of points equidistant in linear space constructed
35
// like bin centers in a histogram. Note that std::vector destructor
36
// is not virtual, so do not destroy this class by base pointer or
37
// reference.
38
*/
39
class
EquidistantBinCenters
:
public
std::vector<double>
40
{
41
public
:
42
EquidistantBinCenters
(
double
xMin,
double
xMax,
unsigned
nBins);
43
inline
virtual
~
EquidistantBinCenters
() {}
44
45
private
:
46
EquidistantBinCenters
();
47
};
48
49
/**
50
// A sequence of points equidistant in log space. Note that
51
// std::vector destructor is not virtual, so do not destroy this
52
// class by base pointer or reference.
53
*/
54
class
EquidistantInLogSpace
:
public
std::vector<double>
55
{
56
public
:
57
EquidistantInLogSpace
(
double
minScale,
double
maxScale,
58
unsigned
nScales);
59
inline
virtual
~
EquidistantInLogSpace
() {}
60
61
private
:
62
EquidistantInLogSpace
();
63
};
64
}
65
66
#endif
// NPSTAT_EQUIDISTANTSEQUENCE_HH_
npstat::EquidistantBinCenters
Definition:
EquidistantSequence.hh:40
npstat::EquidistantInLinearSpace
Definition:
EquidistantSequence.hh:23
npstat::EquidistantInLogSpace
Definition:
EquidistantSequence.hh:55
npstat
Definition:
AbsArrayProjector.hh:14
Generated by
1.9.1