Package mvpa :: Package featsel :: Module helpers :: Class TailSelector
[hide private]
[frames] | no frames]

Class TailSelector

source code


Select elements from a tail of a distribution.

The default behaviour is to discard the lower tail of a given distribution.

Nested Classes [hide private]

Inherited from misc.state.ClassWithCollections: __metaclass__

Instance Methods [hide private]
 
__init__(self, tail='lower', sort=True, **kwargs)
Initialize TailSelector
source code
 
_setTail(self, tail)
Set the tail to be processed.
source code
 
_getNElements(self, seq)
In derived classes has to return the number of elements to be processed given a sequence values forming the distribution.
source code
 
__call__(self, seq)
Returns selected IDs.
source code

Inherited from ElementSelector (private): _setMode

Inherited from misc.state.ClassWithCollections: __getattribute__, __new__, __repr__, __setattr__, __str__, reset

Inherited from object: __delattr__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from ElementSelector: mode, ndiscarded

Inherited from misc.state.ClassWithCollections: _DEV__doc__, descr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tail='lower', sort=True, **kwargs)
(Constructor)

source code 
Initialize TailSelector
Parameters:
  • tail (['lower', 'upper']) - Choose the tail to be processed.
  • sort (bool) - Flag whether selected IDs will be sorted. Disable if not necessary to save some CPU cycles.
Overrides: object.__init__

__call__(self, seq)
(Call operator)

source code 
Returns selected IDs.
Overrides: ElementSelector.__call__