# ProjectionStrategy¶

class ProjectionStrategy(*args)

Base class for the evaluation strategies of the approximation coefficients.

Available constructors:

ProjectionStrategy(projectionStrategy)

Parameters
projectionStrategyProjectionStrategy

A projection strategy which is a LeastSquaresStrategy or an IntegrationStrategy.

Notes

Consider with , and with finite variance: .

The functional chaos expansion approximates using an isoprobabilistic transformation T and an orthonormal multivariate basis of . See FunctionalChaosAlgorithm to get more details.

The meta model of , based on the functional chaos decomposition of writes:

where K is a non empty finite set of indices, whose cardinality is denoted by P.

We detail the case where .

The vector is equivalently defined by:

(1)

and:

(2)

where and the mean is evaluated with respect to the measure .

It corresponds to two points of view:

In both cases, the mean is approximated by a linear quadrature formula:

(3)

where f is a function in .

In the approximation (3), the set I, the points and the weights are evaluated from different methods implemented in the WeightedExperiment.

The convergence criterion used to evaluate the coefficients is based on the residual value defined in the FunctionalChaosAlgorithm.

Methods

 getClassName(self) Accessor to the object’s name. Accessor to the coefficients. getExperiment(self) Accessor to the experiments. getId(self) Accessor to the object’s id. getImplementation(self, \*args) Accessor to the underlying implementation. getInputSample(self) Accessor to the input sample. getMeasure(self) Accessor to the measure. getName(self) Accessor to the object’s name. Accessor to the output sample. Accessor to the relative error. getResidual(self) Accessor to the residual. getWeights(self) Accessor to the weights. setExperiment(self, weightedExperiment) Accessor to the design of experiment. setInputSample(self, inputSample) Accessor to the input sample. setMeasure(self, measure) Accessor to the measure. setName(self, name) Accessor to the object’s name. setOutputSample(self, outputSample) Accessor to the output sample. setWeights(self, weights) Accessor to the weights.
 computeCoefficients
__init__(self, *args)

Initialize self. See help(type(self)) for accurate signature.

getClassName(self)

Accessor to the object’s name.

Returns
class_namestr

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

getCoefficients(self)

Accessor to the coefficients.

Returns
coefPoint

Coefficients .

getExperiment(self)

Accessor to the experiments.

Returns
expWeightedExperiment

Weighted experiment used to evaluate the coefficients.

getId(self)

Accessor to the object’s id.

Returns
idint

Internal unique identifier.

getImplementation(self, *args)

Accessor to the underlying implementation.

Returns
implImplementation

The implementation class.

getInputSample(self)

Accessor to the input sample.

Returns
XSample

Input Sample.

getMeasure(self)

Accessor to the measure.

Returns
muDistribution

Measure defining the scalar product.

getName(self)

Accessor to the object’s name.

Returns
namestr

The name of the object.

getOutputSample(self)

Accessor to the output sample.

Returns
YSample

Output Sample.

getRelativeError(self)

Accessor to the relative error.

Returns
efloat

Relative error.

getResidual(self)

Accessor to the residual.

Returns
erfloat

Residual error.

getWeights(self)

Accessor to the weights.

Returns
wPoint

Weights of the design of experiments.

setExperiment(self, weightedExperiment)

Accessor to the design of experiment.

Parameters
expWeightedExperiment

Weighted design of experiment.

setInputSample(self, inputSample)

Accessor to the input sample.

Parameters
XSample

Input Sample.

setMeasure(self, measure)

Accessor to the measure.

Parameters
mDistribution

Measure defining the scalar product.

setName(self, name)

Accessor to the object’s name.

Parameters
namestr

The name of the object.

setOutputSample(self, outputSample)

Accessor to the output sample.

Parameters
YSample

Output Sample.

setWeights(self, weights)

Accessor to the weights.

Parameters
wPoint

Weights of the design of experiments.