|
| TFCS1DFunction_HistogramCompactBinEdges (size_t nbins=0) |
|
| ~TFCS1DFunction_HistogramCompactBinEdges () |
|
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 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 exponentially 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...
|
|
template<typename T, typename Tint, typename Trandom = float>
class TFCS1DFunction_HistogramCompactBinEdges< T, Tint, Trandom >
Definition at line 376 of file TFCS1DFunctionTemplateHelpers.h.
template<typename T , typename Tint , typename Trandom = float>
return exponentially 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 478 of file TFCS1DFunctionTemplateHelpers.h.
482 if (fabs(
beta) < 1.0
e-8)
483 return (1 -
z) * pos1 +
z * pos2;
493 return (1 -
z) * pos1 +
z * pos2;
template<typename T , typename Tint , typename Trandom = float>
return 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] 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 460 of file TFCS1DFunctionTemplateHelpers.h.
467 ? (0.5 * std::sqrt(
m * (
m + 8 * drnd - 4) + 4) - 1) /
m + 0.5
471 return (1 -
x) * pos1 +
x * pos2;