SamplingStrategy

class SamplingStrategy(*args)

Base class for sampling strategies.

Available constructor:

SamplingStrategyImplementation()

SamplingStrategyImplementation(samplingStratImp)

SamplingStrategyImplementation(dimension)

Parameters:

samplingStratImp : SamplingStrategyImplementationImplementation

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

dimension : int

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

Methods

generate() Generate the sample.
getClassName() Accessor to the object’s name.
getDimension() Accessor to the dimension.
getId() Accessor to the object’s id.
getImplementation(*args) Accessor to the underlying implementation.
getName() Accessor to the object’s name.
setDimension(dimension) Accessor to the dimension.
setName(name) Accessor to the object’s name.
__init__(*args)

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

generate()

Generate the sample.

Returns:

sample : Sample

The sample generated according to the sampling strategy.

getClassName()

Accessor to the object’s name.

Returns:

class_name : str

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

getDimension()

Accessor to the dimension.

Returns:

dimension : int

Dimension of the standard space.

getId()

Accessor to the object’s id.

Returns:

id : int

Internal unique identifier.

getImplementation(*args)

Accessor to the underlying implementation.

Returns:

impl : Implementation

The implementation class.

getName()

Accessor to the object’s name.

Returns:

name : str

The name of the object.

setDimension(dimension)

Accessor to the dimension.

Parameters:

dimension : int

Dimension of the standard space.

setName(name)

Accessor to the object’s name.

Parameters:

name : str

The name of the object.