Page MenuHomeHEPForge

EquidistantSequence.hh
No OneTemporary

EquidistantSequence.hh

#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

Mime Type
text/x-c
Expires
Wed, May 14, 11:27 AM (14 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5107177
Default Alt Text
EquidistantSequence.hh (1 KB)

Event Timeline