|   | latest version v1.9 - last update 10 Apr 2010 |   | 
This class is used to scramble the elements of a given vector or matrix. More...
#include <ltiScramble.h>


| Classes | |
| class | parameters | 
| the parameters for the class scramble (empty)  More... | |
| Public Member Functions | |
| scramble () | |
| scramble (const scramble &other) | |
| virtual | ~scramble () | 
| virtual const char * | getTypeName () const | 
| bool | apply (matrix< T > &srcdest) const | 
| bool | apply (vector< T > &srcdest) const | 
| bool | apply (const matrix< T > &src, matrix< T > &dest) const | 
| bool | apply (const vector< T > &src, vector< T > &dest) const | 
| scramble & | copy (const scramble &other) | 
| virtual functor * | clone () const | 
| const parameters & | getParameters () const | 
This class is used to scramble the elements of a given vector or matrix.
To this end two random indices of the vector or matrix are chosen and their contents swapped. This operation is performed N times, with N the number of elements.
| lti::scramble< T >::scramble | ( | ) | 
default constructor
| lti::scramble< T >::scramble | ( | const scramble< T > & | other | ) | 
copy constructor
| other | the object to be copied | 
| virtual lti::scramble< T >::~scramble | ( | ) |  [virtual] | 
destructor
| bool lti::scramble< T >::apply | ( | const vector< T > & | src, | |
| vector< T > & | dest | |||
| ) | const | 
Makes a scrambled copy from src to dest.
| src | vector<T> with the source data. | |
| dest | vector<T> where the result will be left. | 
dest. | bool lti::scramble< T >::apply | ( | const matrix< T > & | src, | |
| matrix< T > & | dest | |||
| ) | const | 
Makes a scrambled copy from src to dest.
| src | matrix<T> with the source data. | |
| dest | matrix<T> where the result will be left. | 
| bool lti::scramble< T >::apply | ( | vector< T > & | srcdest | ) | const | 
Scramble the elements of srcdest.
| srcdest | vector<T> with the source data. The result will be left here too. | 
| bool lti::scramble< T >::apply | ( | matrix< T > & | srcdest | ) | const | 
Scramble the elements of srcdest.
| srcdest | matrix<T> with the source data. The result will be left here too. | 
| virtual functor* lti::scramble< T >::clone | ( | ) | const  [virtual] | 
returns a pointer to a clone of this functor.
Implements lti::functor.
| scramble& lti::scramble< T >::copy | ( | const scramble< T > & | other | ) | 
copy data of "other" functor.
| other | the functor to be copied | 
Reimplemented from lti::functor.
| const parameters& lti::scramble< T >::getParameters | ( | ) | const | 
returns used parameters
Reimplemented from lti::functor.
| virtual const char* lti::scramble< T >::getTypeName | ( | ) | const  [virtual] | 
returns the name of this type ("scramble")
Reimplemented from lti::functor.