ApproximationAlgorithm¶
- class ApproximationAlgorithm(*args)¶
Approximation algorithm.
See also
LeastSquaresStrategy
,ApproximationAlgorithmImplementationFactory
LeastSquaresMetaModelSelectionFactory
Notes
The ApproximationAlgorithm is built from an approximation algorithm implementation factory which is a
ApproximationAlgorithmImplementationFactory
or aLeastSquaresMetaModelSelectionFactory
.This class is not usable because it has sense only whithin the
FunctionalChaosAlgorithm
.Methods
Accessor to the object's name.
Accessor to the coefficients.
getId
()Accessor to the object's id.
Accessor to the underlying implementation.
getName
()Accessor to the object's name.
getPsi
()Accessor to the basis.
Accessor to the coefficients.
Accessor to the coefficients.
Accessor to the verbosity flag.
Accessor to the weights.
getX
()Accessor to the input sample.
getY
()Accessor to the output sample.
run
()Run the algorithm.
setName
(name)Accessor to the object's name.
setVerbose
(verbose)Accessor to the verbosity flag.
- __init__(*args)¶
- getClassName()¶
Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
- 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.
- getRelativeError()¶
Accessor to the coefficients.
- Returns
- relativeErrorfloat
The relative error
- getResidual()¶
Accessor to the coefficients.
- Returns
- coefficientsfloat
The residual
- getVerbose()¶
Accessor to the verbosity flag.
- Returns
- vbool.
Verbosity
- run()¶
Run the algorithm.
- setName(name)¶
Accessor to the object’s name.
- Parameters
- namestr
The name of the object.
- setVerbose(verbose)¶
Accessor to the verbosity flag.
- Parameters
- vbool
Enable or disable the verbosity.