The Finite Resolution Dynamics Software
|
A cover of a subset in R^n consisting of open boxes. More...
#include <covboxes.h>
Public Types | |
typedef NumType | NumberType |
The type of numbers in the Henon map. More... | |
Public Member Functions | |
tCoverBoxes (const int spaceDim, const NumType *leftCorner, const NumType *boxWidths, const int *partCounts, const NumType *overlap=0) | |
The constructor of an open cover object. More... | |
~tCoverBoxes () | |
The destructor of an open cover object. More... | |
int | dim () const |
Returns the dimension of the phase space. More... | |
int | size () const |
Returns the number of boxes in the cover. More... | |
template<class ResultType > | |
void | get (const int n, ResultType *leftBounds, ResultType *rightBounds) const |
Returns the coordinates of the given box. More... | |
template<class ResultType > | |
void | getLeftCorner (ResultType *leftCorner) const |
Returns the coordinates of the left corner of the range box. More... | |
template<class ResultType > | |
void | getBoxWidths (ResultType *boxWidths) const |
Returns the width of the range box in each direction. More... | |
template<class InputType , class BoxNumbers > | |
void | cover (const InputType *leftBounds, const InputType *rightBounds, BoxNumbers &boxNumbers, NumType *diameter2=0) |
Covers the given box and adds numbers of all the boxes in the cover to a list using the provided class object with its method "add". More... | |
template<class InputType > | |
void | cover (const InputType *x) |
Covers a given point with open boxes. More... | |
void | forget () |
Forgets the cover elements. More... | |
Private Types | |
typedef int | CoordType |
The type of integer coordinates for boxes that represent cover elements. More... | |
typedef chomp::homology::tCubeBase< CoordType > | CubeType |
The type of a cube that represents a cover element. More... | |
Private Member Functions | |
NumType | leftBound (int coord, int dir) const |
Computes the real left coordinate in the given direction of a box represented by integer coordinates. More... | |
NumType | rightBound (int coord, int dir) const |
Computes the real right coordinate in the given direction of a box represented by integer coordinates. More... | |
CoordType | leftCoord (const NumType &bound, int dir) const |
Computes the left coordinate in the given direction of the leftmost box to cover the given real coordinate. More... | |
CoordType | rightCoord (const NumType &bound, int dir) const |
Computes the right coordinate in the given direction of the rightmost box to cover the given real coordinate. More... | |
tCoverBoxes (const tCoverBoxes< NumType > &) | |
The copy constructor should not be used. More... | |
tCoverBoxes< NumType > & | operator= (const tCoverBoxes< NumType > &) |
The assignment operator should not be used. More... | |
Private Attributes | |
int | spaceDim |
The dimension of the space. More... | |
NumType * | leftCorner |
The lower left corner of the covered rectangle. More... | |
NumType * | boxWidths |
The widths of the covered rectangle in all the directions. More... | |
NumType * | rightCorner |
The upper right corner of the covered rectangle. More... | |
int * | partCounts |
The numbers of parts into which the box is subdivided in each direction. More... | |
NumType * | overlap |
The minimal overlap width. More... | |
CoordType * | buffer |
A temporary buffer for the coordinates of two cubes. More... | |
chomp::homology::hashedset< CubeType > | boxes |
The set of boxes in the cover. More... | |
A cover of a subset in R^n consisting of open boxes.
Definition at line 73 of file covboxes.h.
|
private |
The type of integer coordinates for boxes that represent cover elements.
Definition at line 149 of file covboxes.h.
|
private |
The type of a cube that represents a cover element.
Definition at line 155 of file covboxes.h.
typedef NumType tCoverBoxes< NumType >::NumberType |
The type of numbers in the Henon map.
Definition at line 77 of file covboxes.h.
|
inline |
The constructor of an open cover object.
Definition at line 187 of file covboxes.h.
References tRounding< NumType >::min_number().
|
inline |
The destructor of an open cover object.
Definition at line 272 of file covboxes.h.
|
inlineprivate |
The copy constructor should not be used.
Definition at line 257 of file covboxes.h.
|
inline |
Covers the given box and adds numbers of all the boxes in the cover to a list using the provided class object with its method "add".
Adds boxes necessary to cover the rectangle to the cover if they are not there yet. Throws an exception if the predefined bounds of the covered rectangular box have been exceeded. If requested, comptues a rigorous upper bound for the square of the diameter of the cover.
Definition at line 466 of file covboxes.h.
References DummyBoxNumbers::add().
|
inline |
Covers a given point with open boxes.
Definition at line 520 of file covboxes.h.
|
inline |
Returns the dimension of the phase space.
Definition at line 284 of file covboxes.h.
|
inline |
Forgets the cover elements.
Definition at line 296 of file covboxes.h.
|
inline |
Returns the coordinates of the given box.
Throws an exception if the box with this number is undefined.
Definition at line 421 of file covboxes.h.
|
inline |
Returns the width of the range box in each direction.
Definition at line 456 of file covboxes.h.
|
inline |
Returns the coordinates of the left corner of the range box.
Definition at line 446 of file covboxes.h.
|
inlineprivate |
Computes the real left coordinate in the given direction of a box represented by integer coordinates.
Definition at line 304 of file covboxes.h.
|
inlineprivate |
Computes the left coordinate in the given direction of the leftmost box to cover the given real coordinate.
Definition at line 329 of file covboxes.h.
References tCoverBoxes< NumType >::rightCoord().
Referenced by tCoverBoxes< NumType >::rightBound().
|
inlineprivate |
The assignment operator should not be used.
Definition at line 265 of file covboxes.h.
|
inlineprivate |
Computes the real right coordinate in the given direction of a box represented by integer coordinates.
Definition at line 315 of file covboxes.h.
References tCoverBoxes< NumType >::leftCoord().
|
inlineprivate |
Computes the right coordinate in the given direction of the rightmost box to cover the given real coordinate.
Definition at line 375 of file covboxes.h.
Referenced by tCoverBoxes< NumType >::leftCoord().
|
inline |
Returns the number of boxes in the cover.
Definition at line 290 of file covboxes.h.
|
private |
The set of boxes in the cover.
Definition at line 158 of file covboxes.h.
|
private |
The widths of the covered rectangle in all the directions.
Definition at line 135 of file covboxes.h.
|
private |
A temporary buffer for the coordinates of two cubes.
Definition at line 152 of file covboxes.h.
|
private |
The lower left corner of the covered rectangle.
Definition at line 132 of file covboxes.h.
|
private |
The minimal overlap width.
Definition at line 145 of file covboxes.h.
|
private |
The numbers of parts into which the box is subdivided in each direction.
Definition at line 142 of file covboxes.h.
|
private |
The upper right corner of the covered rectangle.
Definition at line 138 of file covboxes.h.
|
private |
The dimension of the space.
Definition at line 129 of file covboxes.h.