SamplingStrategy

class SamplingStrategy(*args)

Base class for sampling strategies.

Available constructor:

SamplingStrategyImplementation()

SamplingStrategyImplementation(samplingStratImp)

SamplingStrategyImplementation(dimension)

Parameters
samplingStratImpSamplingStrategyImplementationImplementation

An implementation of the sampling strategy adopted, which is RandomDirection or OrthogonalDirection.

dimensionint

The dimension of the standard space. By default, dimension = 0 but automatically updated by the calling class.

Methods

generate(self)

Generate the sample.

getClassName(self)

Accessor to the object’s name.

getDimension(self)

Accessor to the dimension.

getId(self)

Accessor to the object’s id.

getImplementation(self, \*args)

Accessor to the underlying implementation.

getName(self)

Accessor to the object’s name.

setDimension(self, dimension)

Accessor to the dimension.

setName(self, name)

Accessor to the object’s name.

__init__(self, *args)

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

generate(self)

Generate the sample.

Returns
sampleSample

The sample generated according to the sampling strategy.

getClassName(self)

Accessor to the object’s name.

Returns
class_namestr

The object class name (object.__class__.__name__).

getDimension(self)

Accessor to the dimension.

Returns
dimensionint

Dimension of the standard space.

getId(self)

Accessor to the object’s id.

Returns
idint

Internal unique identifier.

getImplementation(self, *args)

Accessor to the underlying implementation.

Returns
implImplementation

The implementation class.

getName(self)

Accessor to the object’s name.

Returns
namestr

The name of the object.

setDimension(self, dimension)

Accessor to the dimension.

Parameters
dimensionint

Dimension of the standard space.

setName(self, name)

Accessor to the object’s name.

Parameters
namestr

The name of the object.