Skip to main content

NAO


NAO Class NAHyperCube

Overview


The NAHyperCube is the set of points in hyperspace that have all coordinates less than one in absoulte value. In other words, given a dimension n, the NAHyperCube is the region:


  HC = { x in R^n | -1< x_i < 1}

Note that the HyperCube is open.


User's Guide


To use this class, you must include the header file
NAO/HyprCube.h
and link against library
libNAOBase.a
The following constructors are provided:

The following member functions are available in addition to those provided by the abstract interface NARegion:


Programmer's Guide


The NAHyperCube stores the dimension of the Hyperspace. As a region, the HyperCube implements the getBaseSpaceDimension and isitinChart member functions. Both are trivial.

  getDimension() returns this->n.

  isitinChart(x) returns foreach i<this->n,  fabs(x.i) < 1
The bounding box is the hypercube itself. All BoundingBoxMin's are -1, and BoundingBoxMax's are +1. The BoundingBoxScale is set to .2.


Example


To create a 5-dimensional HyperCube:
#include<NAO/HyprCube.h>

NAManifold *HC=new NAHyperCube(5);

See also the HyperCube example in the Examples document.


Related Classes and Subroutines


The parent of this class:

Siblings of this class:


Created: Fri Oct 9 10:22:31 EDT 1998

[Comments | NAO home page ]

[Research home page]

[ IBM home page | Order | Privacy | ContactIBM | Legal ]