networkqit.algorithms.basinhoppingmod.RandomDisplacement

class RandomDisplacement(stepsize=0.5, random_state=None)[source]

Add a random displacement of maximum size stepsize to each coordinate

Calling this updates x in-place.

stepsizefloat, optional

Maximum stepsize in any dimension

random_stateNone or np.random.RandomState instance, optional

The random number generator that generates the displacements

__init__(stepsize=0.5, random_state=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([stepsize, random_state])

Initialize self.