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

Class FixedNElementTailSelector

source code


Given a sequence, provide set of IDs for a fixed number of to be selected elements.
Nested Classes [hide private]

Inherited from misc.state.Stateful: __metaclass__

Instance Methods [hide private]
 
__init__(self, nelements, **kwargs)
Cheap initialization.
source code
 
__repr__(self)
repr(x)
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
 
_setNElements(self, nelements) source code

Inherited from TailSelector: __call__

Inherited from TailSelector (private): _setTail

Inherited from ElementSelector (private): _setMode

Inherited from misc.state.Stateful: __getattribute__, __setattr__, __str__, reset

Inherited from object: __delattr__, __hash__, __new__, __reduce__, __reduce_ex__

Class Variables [hide private]
  _collections_template = {'states': <mvpa.misc.state.StateColle...

Inherited from ElementSelector: ndiscarded

Inherited from misc.state.Stateful (private): _initargs

Properties [hide private]
  nelements

Inherited from ElementSelector: mode

Inherited from misc.state.Stateful: descr

Inherited from object: __class__

Method Details [hide private]

__init__(self, nelements, **kwargs)
(Constructor)

source code 
Cheap initialization.
Parameters:
  • nselect (int) - Number of elements to select/discard.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

_getNElements(self, seq)

source code 
In derived classes has to return the number of elements to be processed given a sequence values forming the distribution.
Overrides: TailSelector._getNElements
(inherited documentation)

Class Variable Details [hide private]

_collections_template

Value:
{'states': <mvpa.misc.state.StateCollection object at 0x895058c>}

Property Details [hide private]

nelements

Get Method:
unreachable(x)
Set Method:
_setNElements(self, nelements)