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
orOrthogonalDirection
.- dimensionint
The dimension of the standard space. By default, but automatically updated by the calling class.
See also
Methods
generate
()Generate the sample.
Accessor to the object’s name.
Accessor to the dimension.
getId
()Accessor to the object’s id.
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)¶
Initialize self. See help(type(self)) for accurate signature.
- generate()¶
Generate the sample.
- Returns
- sample
Sample
The sample generated according to the sampling strategy.
- sample
- 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
The implementation class.
- 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.