Package parsimony :: Package utils :: Module start_vectors :: Class BaseStartVector
[hide private]
[frames] | no frames]

Class BaseStartVector

source code

object --+
         |
        BaseStartVector
Known Subclasses:

Base class for start vector generation.

Parameters
----------
normalise : Bool. Whether or not to normalise the vector that is returned.

seed : Integer or None. The seed to the pseudo-random number generator. If
        none, no seed is used. The seed is set at initialisation, so if the
        RNG is used in between initialisation and utilisation, then the
        random numbers will change. Default is None. The seed is not used
        by all implementing classes.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__init__(self, normalise=True, seed=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_vector(self, size) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset(['get_vector'])
  _abc_cache = <_weakrefset.WeakSet object at 0x308fb10>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x308fb90>
  _abc_negative_cache_version = 10
  _abc_registry = <_weakrefset.WeakSet object at 0x308fa10>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, normalise=True, seed=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_vector(self, size)

source code 
Decorators:
  • @abc.abstractmethod