#include <DGtal/base/LabelledMap.h>
|
| LabelledMapMemFunctor (double p, double q, unsigned int sL, unsigned int sV, unsigned int sP, unsigned int sA) |
|
double | fctNM (unsigned int N, unsigned int M) const |
|
double | fctNMpq (unsigned int N, unsigned int M, double p, double q) const |
|
|
double | _p |
|
double | _q |
|
unsigned int | _sL |
|
unsigned int | _sV |
|
unsigned int | _sP |
|
unsigned int | _sA |
|
Functor used to compute the best parameters for minimizing the memory usage of a LabelledMap structure.
Definition at line 1268 of file LabelledMap.h.
◆ LabelledMapMemFunctor()
DGtal::detail::LabelledMapMemFunctor::LabelledMapMemFunctor |
( |
double |
p, |
|
|
double |
q, |
|
|
unsigned int |
sL, |
|
|
unsigned int |
sV, |
|
|
unsigned int |
sP, |
|
|
unsigned int |
sA |
|
) |
| |
|
inline |
◆ fctNM()
double DGtal::detail::LabelledMapMemFunctor::fctNM |
( |
unsigned int |
N, |
|
|
unsigned int |
M |
|
) |
| const |
|
inline |
Definition at line 1282 of file LabelledMap.h.
1284 double alpha0 =
_sL +
_sV * ( N+1 );
1287 + beta0 *
_q * pow(1.0 -
_p, (
double)N+1)
1288 * ( 1.0 + pow(1.0 -
_p, (
double)M-1 )
1289 / ( 1.0 - pow(1.0 -
_p, (
double)M ) ) );
References _p, _q, _sA, _sL, _sP, and _sV.
◆ fctNMpq()
double DGtal::detail::LabelledMapMemFunctor::fctNMpq |
( |
unsigned int |
N, |
|
|
unsigned int |
M, |
|
|
double |
p, |
|
|
double |
q |
|
) |
| const |
|
inline |
Definition at line 1292 of file LabelledMap.h.
1294 double alpha0 =
_sL +
_sV * ( N+1 );
1297 + beta0 * q * pow(1.0 - p, (
double)N+1)
1298 * ( 1.0 + pow(1.0 - p, (
double)M-1 )
1299 / ( 1.0 - pow(1.0 - p, (
double)M ) ) );
References _sA, _sL, _sP, and _sV.
◆ _p
double DGtal::detail::LabelledMapMemFunctor::_p |
◆ _q
double DGtal::detail::LabelledMapMemFunctor::_q |
◆ _sA
unsigned int DGtal::detail::LabelledMapMemFunctor::_sA |
◆ _sL
unsigned int DGtal::detail::LabelledMapMemFunctor::_sL |
◆ _sP
unsigned int DGtal::detail::LabelledMapMemFunctor::_sP |
◆ _sV
unsigned int DGtal::detail::LabelledMapMemFunctor::_sV |
The documentation for this struct was generated from the following file: