SequentialSamplingAlgorithm¶
- class SequentialSamplingAlgorithm(*args)¶
Approximation algorithm.
Methods
generate
([size])Generate a new sample.
Accessor to the object's name.
Accessor to the generation indices.
getId
()Accessor to the object's id.
Accessor to the underlying implementation.
Accessor to the input sample.
getName
()Accessor to the object's name.
Accessor to the output sample.
setName
(name)Accessor to the object's name.
update
(x, y)Update the current sample.
Notes
This class is not usable because it has sense only within the
FunctionalChaosAlgorithm
.- __init__(*args)¶
- generate(size=1)¶
Generate a new sample.
- Parameters:
- sizeint
Size of sample to generate
- Returns:
- x
Sample
New input sample.
- x
- getClassName()¶
Accessor to the object’s name.
- Returns:
- class_namestr
The object class name (object.__class__.__name__).
- getGenerationIndices()¶
Accessor to the generation indices.
- Returns:
- generationIndices
Indices
Indices of last element for each generation. This is updated each time the update() method is evaluated.
- generationIndices
- 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.
- setName(name)¶
Accessor to the object’s name.
- Parameters:
- namestr
The name of the object.