![]() |
ATLAS Offline Software
|
#include <TFCS1DFunctionTemplateHelpers.h>
Public Types | |
typedef TFCS1DFunction_size_t | size_t |
typedef T | value_type |
typedef Trandom | random_type |
Public Member Functions | |
TFCS1DFunction_HistogramBinEdges (size_t nbins=0) | |
~TFCS1DFunction_HistogramBinEdges () | |
std::size_t | MemorySizeArray () const |
std::size_t | MemorySize () const |
void | set_nbins (size_t nbins) |
set number of bins More... | |
size_t | get_nbins () const |
return number of bins More... | |
void | SetBinLowEdge (size_t pos, const T &value) |
set position of lower edge of bins More... | |
const T & | GetBinLowEdge (size_t pos) const |
get position of lower edge of bins More... | |
const T | GetBinLength (size_t pos) const |
get the length of a bin More... | |
void | SetMin (const T &value) |
set and get minimum More... | |
const T & | GetMin () const |
void | SetMax (const T &value) |
set and get maximum More... | |
const T & | GetMax () const |
void | SetMinMax (const T &valuemin, const T &valuemax) |
set minimum and maximum More... | |
const T | Length () const |
Get length of interval of all bins. More... | |
T | position (size_t pos, const Trandom &drnd) const |
return linear interpolated position for bin pos. More... | |
T | position_lin (size_t pos, Trandom m, const Trandom &drnd) const |
return linearly interpolated position for bin pos, such that histograming the position gives a linear slope m, where m is in units of the bin width for bin pos. More... | |
T | position_exp (size_t pos, Trandom beta, const Trandom &drnd) const |
return exponetially interpolated position for bin pos, such that histograming the position gives a linear slope m, where m is in units of the bin width for bin pos. More... | |
Private Member Functions | |
size_t | size () const |
Private Attributes | |
TFCS1DFunction_Array< T > | m_array |
Definition at line 254 of file TFCS1DFunctionTemplateHelpers.h.
typedef Trandom TFCS1DFunction_HistogramBinEdges< T, Trandom >::random_type |
Definition at line 258 of file TFCS1DFunctionTemplateHelpers.h.
typedef TFCS1DFunction_size_t TFCS1DFunction_HistogramBinEdges< T, Trandom >::size_t |
Definition at line 256 of file TFCS1DFunctionTemplateHelpers.h.
typedef T TFCS1DFunction_HistogramBinEdges< T, Trandom >::value_type |
Definition at line 257 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 260 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 261 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
|
inline |
get the length of a bin
Definition at line 279 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
get position of lower edge of bins
Definition at line 276 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 289 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 285 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Get length of interval of all bins.
Definition at line 298 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 264 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 263 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
|
inline |
return exponetially interpolated position for bin pos, such that histograming the position gives a linear slope m, where m is in units of the bin width for bin pos.
Interpolation is done with a random value in the range [0,1]
(m_array[pos+1] - m_array[pos]);
Definition at line 325 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
return linearly interpolated position for bin pos, such that histograming the position gives a linear slope m, where m is in units of the bin width for bin pos.
Interpolation is done with a random value in the range [0,1]
Definition at line 309 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
set number of bins
Definition at line 267 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
set position of lower edge of bins
Definition at line 273 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
set and get maximum
Definition at line 288 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
set and get minimum
Definition at line 284 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
set minimum and maximum
Definition at line 292 of file TFCS1DFunctionTemplateHelpers.h.
|
inlineprivate |
Definition at line 345 of file TFCS1DFunctionTemplateHelpers.h.
|
private |
Definition at line 344 of file TFCS1DFunctionTemplateHelpers.h.