#include <Ordering.h>
|
int | k_ |
|
std::vector< int > | m_ |
| the maximum for each digit More...
|
|
char | digits_ [256] |
|
std::vector< int > | g_ |
| the encoded format More...
|
|
std::vector< int > | h_ |
| the integer in mixed-radix representation More...
|
|
Abstract interface for multi-dimensional sensitivity ordering
#include <libpf/core/Ordering.h>
- Warning
-
Thread safe:
-
Extendable:
-
Platform dependencies:
◆ Ordering()
Ordering::Ordering |
( |
const std::vector< int > & |
m | ) |
|
|
explicit |
- Parameters
-
m | vector of integer with number or steps in each dimension; should be less than 256 in size |
◆ ~Ordering()
virtual Ordering::~Ordering |
( |
void |
| ) |
|
|
inlinevirtual |
◆ digits()
const char * Ordering::digits |
( |
void |
| ) |
const |
- Returns
- current point in mixed-radix representation
◆ dimensions()
int Ordering::dimensions |
( |
void |
| ) |
const |
- Returns
- the number of dimensions
◆ distance()
int Ordering::distance |
( |
int |
i, |
|
|
int |
j |
|
) |
| const |
calculate the distance between two points based on the infinity-norm, i.e. the positive integer obtained as the maximum absolute value of the difference of any digit
- Returns
- distance from first to second point, based on infinity-norm
- Parameters
-
i | first point |
j | second point |
◆ fromInternalRepresentation_()
int Ordering::fromInternalRepresentation_ |
( |
const std::vector< int > & |
g | ) |
const |
convert internal representation to point
- Returns
- point
- Parameters
-
[in] | g | internal representation, MSD is k_ - 1, LSD is 0 |
◆ idFromRound()
virtual int Ordering::idFromRound |
( |
int |
round | ) |
const |
|
pure virtual |
◆ incrementInternalRepresentation_()
void Ordering::incrementInternalRepresentation_ |
( |
void |
| ) |
const |
perform plain increment on internal representation
◆ initial()
virtual int Ordering::initial |
( |
void |
| ) |
const |
|
virtual |
- Returns
- the first id based on the ordering
Reimplemented in OrderingSpiral.
◆ lastId()
virtual bool Ordering::lastId |
( |
void |
| ) |
const |
|
pure virtual |
◆ localIdFromId()
int Ordering::localIdFromId |
( |
int |
id, |
|
|
int |
j |
|
) |
| const |
return step in j-th dimension based on the ordering from ordered counter
- Parameters
-
id | ordered counter |
j | dimension |
◆ localIdFromRound()
virtual int Ordering::localIdFromRound |
( |
int |
round, |
|
|
int |
j |
|
) |
| const |
|
pure virtual |
◆ maxRound()
int Ordering::maxRound |
( |
void |
| ) |
const |
- Returns
- the number of total rows of the sensitivity, i.e. the product of the maximum for each digit
◆ name()
virtual const char * Ordering::name |
( |
void |
| ) |
const |
|
pure virtual |
◆ nextId()
virtual int Ordering::nextId |
( |
void |
| ) |
const |
|
pure virtual |
◆ print()
void Ordering::print |
( |
void |
| ) |
const |
◆ roundFromId()
virtual int Ordering::roundFromId |
( |
int |
id | ) |
const |
|
pure virtual |
◆ toInternalRepresentation_()
void Ordering::toInternalRepresentation_ |
( |
int |
i, |
|
|
std::vector< int > & |
g |
|
) |
| const |
convert point i to internal representation
- Parameters
-
[in] | i | point to convert |
[out] | g | internal representation, MSD is k_ - 1, LSD is 0 |
◆ digits_
char Ordering::digits_[256] |
|
mutableprotected |
◆ g_
std::vector<int> Ordering::g_ |
|
mutableprotected |
◆ h_
std::vector<int> Ordering::h_ |
|
mutableprotected |
the integer in mixed-radix representation
◆ k_
◆ m_
std::vector<int> Ordering::m_ |
|
protected |
the maximum for each digit
The documentation for this class was generated from the following file: