Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11222128
EquidistantSequence.hh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
EquidistantSequence.hh
View Options
#ifndef NPSTAT_EQUIDISTANTSEQUENCE_HH_
#define NPSTAT_EQUIDISTANTSEQUENCE_HH_
/*!
// \file EquidistantSequence.hh
//
// \brief Equidistant sequences of points in either linear or log space
//
// Author: I. Volobouev
//
// March 2009
*/
#include
<vector>
namespace
npstat
{
/**
// A sequence of points equidistant in linear space. Note that
// std::vector destructor is not virtual, so do not destroy this
// class by base pointer or reference.
*/
class
EquidistantInLinearSpace
:
public
std
::
vector
<
double
>
{
public
:
EquidistantInLinearSpace
(
double
minScale
,
double
maxScale
,
unsigned
nScales
);
inline
virtual
~
EquidistantInLinearSpace
()
{}
private
:
EquidistantInLinearSpace
();
};
/**
// A sequence of points equidistant in linear space constructed
// like bin centers in a histogram. Note that std::vector destructor
// is not virtual, so do not destroy this class by base pointer or
// reference.
*/
class
EquidistantBinCenters
:
public
std
::
vector
<
double
>
{
public
:
EquidistantBinCenters
(
double
xMin
,
double
xMax
,
unsigned
nBins
);
inline
virtual
~
EquidistantBinCenters
()
{}
private
:
EquidistantBinCenters
();
};
/**
// A sequence of points equidistant in log space. Note that
// std::vector destructor is not virtual, so do not destroy this
// class by base pointer or reference.
*/
class
EquidistantInLogSpace
:
public
std
::
vector
<
double
>
{
public
:
EquidistantInLogSpace
(
double
minScale
,
double
maxScale
,
unsigned
nScales
);
inline
virtual
~
EquidistantInLogSpace
()
{}
private
:
EquidistantInLogSpace
();
};
}
#endif
// NPSTAT_EQUIDISTANTSEQUENCE_HH_
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, May 14, 11:27 AM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5107177
Default Alt Text
EquidistantSequence.hh (1 KB)
Attached To
rNPSTATSVN npstatsvn
Event Timeline
Log In to Comment