#include </cur/unifexp/partcrit.h>
Public Member Functions | |
std::string | name () const |
Returns the name of the object. | |
void | create (const mapType< numType > &theMap, int partCount, const numType &delta) |
Creates a partition based on the given map, the requested number of elements in the partition, and the width of the critical neighborhood. | |
Static Private Member Functions | |
static numType | dist (const numType &x, const numType &y) |
A small helper functin that computes the distance between two numbers. | |
template<class vectType> | |
static void | fillUniform (vectType &tab, int first, int last) |
Fills part of the partition table between the given entries in a uniform way based on the values at these ends. |
The complement of the critical neighborhood is divided into intervals of approximately the same length.
Definition at line 54 of file partcrit.h.
std::string unifexp::partCritical< numType >::name | ( | ) | const [inline, virtual] |
Returns the name of the object.
Implements unifexp::partType< numType >.
Definition at line 81 of file partcrit.h.
void unifexp::partCritical< numType >::create | ( | const mapType< numType > & | theMap, | |
int | partCount, | |||
const numType & | delta | |||
) | [inline, virtual] |
Creates a partition based on the given map, the requested number of elements in the partition, and the width of the critical neighborhood.
Implements unifexp::partType< numType >.
Definition at line 107 of file partcrit.h.
References unifexp::partType< numType >::addCritical(), unifexp::partType< numType >::allocate(), unifexp::partCritical< numType >::dist(), and unifexp::partCritical< numType >::fillUniform().
numType unifexp::partCritical< numType >::dist | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static, private] |
A small helper functin that computes the distance between two numbers.
Definition at line 87 of file partcrit.h.
Referenced by unifexp::partCritical< numType >::create().
void unifexp::partCritical< numType >::fillUniform | ( | vectType & | tab, | |
int | first, | |||
int | last | |||
) | [inline, static, private] |
Fills part of the partition table between the given entries in a uniform way based on the values at these ends.
Definition at line 96 of file partcrit.h.
Referenced by unifexp::partCritical< numType >::create().