Finds all local maximas/minimas in an ArrayND. More...
Public Member Functions | |
| SampledExtremeFinderND (const ArrayND< T > &arr, bool minima) | |
| int | nrExtremes () const |
| const int * | getExtremes () const |
Protected Member Functions | |
| od_int64 | nrIterations () const |
| bool | doWork (od_int64, od_int64, int) |
| bool | findExtreme (int *) const |
| int | indexOf (const int *) const |
Protected Attributes | |
| const ArrayND< T > & | array_ |
| ArrayNDInfoImpl | relcube_ |
| bool | minima_ |
| TypeSet< int > | extremes_ |
| Threads::ReadWriteLock | lock_ |
Finds all local maximas/minimas in an ArrayND.
| SampledExtremeFinderND< T >::SampledExtremeFinderND | ( | const ArrayND< T > & | arr, | |
| bool | minima | |||
| ) | [inline] |
| bool SampledExtremeFinderND< T >::doWork | ( | od_int64 | start, | |
| od_int64 | stop, | |||
| int | ||||
| ) | [inline, protected] |
| bool SampledExtremeFinderND< T >::findExtreme | ( | int * | extremepos | ) | const [inline, protected] |
| const int* SampledExtremeFinderND< T >::getExtremes | ( | ) | const [inline] |
Returns a pointer with positions, where ptr[0] ... ptr[ndim-1] is one position.
| int SampledExtremeFinderND< T >::indexOf | ( | const int * | pos | ) | const [inline, protected] |
| int SampledExtremeFinderND< T >::nrExtremes | ( | ) | const [inline] |
| od_int64 SampledExtremeFinderND< T >::nrIterations | ( | ) | const [inline, protected, virtual] |
Implements ParallelTask.
const ArrayND<T>& SampledExtremeFinderND< T >::array_ [protected] |
TypeSet<int> SampledExtremeFinderND< T >::extremes_ [protected] |
Threads::ReadWriteLock SampledExtremeFinderND< T >::lock_ [protected] |
bool SampledExtremeFinderND< T >::minima_ [protected] |
ArrayNDInfoImpl SampledExtremeFinderND< T >::relcube_ [protected] |
1.7.1