SamplingStrategy

class SamplingStrategy(*args)

Base class for directions sampling strategies.

Parameters:
dimensionint

The dimension of the standard space.

By default, dimension = 0 but automatically updated by the calling class.

Methods

generate()

Generate the directions.

getClassName()

Accessor to the object's name.

getDimension()

Accessor to the dimension.

getId()

Accessor to the object's id.

getImplementation()

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)
generate()

Generate the directions.

Returns:
sampleSample

The directions generated according to the sampling strategy.

Notes

The sample is the collection of the points on the unit sphere in the standard space associated to the generated directions.

getClassName()

Accessor to the object’s name.

Returns:
class_namestr

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

getDimension()

Accessor to the dimension.

Returns:
dimensionint

Dimension of the standard space.

getId()

Accessor to the object’s id.

Returns:
idint

Internal unique identifier.

getImplementation()

Accessor to the underlying implementation.

Returns:
implImplementation

A copy of the underlying implementation object.

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

setDimension(dimension)

Accessor to the dimension.

Parameters:
dimensionint

Dimension of the standard space.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.