#include <cDomainVectorBasis.h>
List of all members.
Detailed Description
Definition at line 51 of file cDomainVectorBasis.h.
Member Function Documentation
This function creates creates a good domain wich contains all the vectors of the given list liVectors . A domain is better than an other domain, if it takes less storage bits to store the numbers and the domain. Beware: You have to care that the returned domain is deleted. (if one was returned)
- Parameters:
-
liVectors | the list with the vectors, for which a domain is to create |
- Returns:
- a new domain which contains all the given vectors liVectors
This method returns the domain of the iNumberOfElement'th element in the vectors of the domain.
- Parameters:
-
iNumberOfElement | the elementnumber for which the domain is to return |
- Returns:
- domain of the iNumberOfElement'th element in the vectors of the domain
Implemented in fib::cDomainVectorOpenEnd, and fib::cDomainVector.
virtual const cDomain* fib::cDomainVectorBasis::getElementDomain |
( |
const unsignedIntFib |
iNumberOfElement | ) |
const |
|
pure virtual |
This method returns the domain of the iNumberOfElement'th element in the vectors of the domain.
- Parameters:
-
iNumberOfElement | the elementnumber for which the domain is to return |
- Returns:
- domain of the iNumberOfElement'th element in the vectors of the domain
Implemented in fib::cDomainVectorOpenEnd, and fib::cDomainVector.
virtual unsignedIntFib fib::cDomainVectorBasis::getNumberOfElements |
( |
| ) |
const |
|
pure virtual |
virtual bool fib::cDomainVectorBasis::isElement |
( |
const cFibVector & |
fibVector | ) |
const |
|
pure virtual |
This method checks if the given vector is an element of the domain. If the value dValue is an element of the domain true is returned, else false.
- Parameters:
-
fibVector | the vector for which to check, if it is an element of the domain |
- Returns:
- if the vector fibVector is an element of the domain true is returned, else false
Implemented in fib::cDomainVectorOpenEnd, and fib::cDomainVector.
virtual bool fib::cDomainVectorBasis::isInBoundaries |
( |
const cFibVector & |
fibVector | ) |
const |
|
pure virtual |
This method checks if the given vector is inside the domain boundaries. If the value dValue is inside of the domain boundaries true is returned, else false. A vector is inside of the vector domain boudaries, if all its elements are inside ther correspondending element domain boundaries.
- Parameters:
-
fibVector | the vector for which to check, if it is inside of the domain boundaries |
- Returns:
- if the vector fibVector is inside of the domain boundaries true is returned, else false
Implemented in fib::cDomainVectorOpenEnd, and fib::cDomainVector.
virtual bool fib::cDomainVectorBasis::isScalar |
( |
| ) |
const |
|
virtual |
- Returns:
- true if the object represents a scalar domain, else false
Reimplemented from fib::cDomain.
virtual bool fib::cDomainVectorBasis::isVector |
( |
| ) |
const |
|
virtual |
- Returns:
- true if the object represents a vector domain, else false
Reimplemented from fib::cDomain.
This method round the given value vector to an vector in the domain of this object. The rounded vector will be the vector, wich elements have the minimal summed distance to the elements of the given vector fibVector. If more than one such vector exists, the vector wich first n elements have the minimal summed distance to the first n elements of the given vector fibVector. Wher n is first the number of elements in the vector, and than is decrased to 1 in steps of 1. If again more such vectors exists, the one with the smalest k elements is choosen, wher k begins with 1 and is incrased to the number of vectorelements in the input vector. ATTENTION: The returned vector will not be deleted automaticly, you have to delete it.
- Parameters:
-
fibVector | the vector which should be rounded |
- Returns:
- the rounded vector of fibVector
Implemented in fib::cDomainVectorOpenEnd, and fib::cDomainVector.
The documentation for this class was generated from the following file: