SobolSimulationResult

(Source code, png)

../../_images/SobolSimulationResult.png
class SobolSimulationResult(*args)

Sobol simulation result.

Gathers the results of a SobolSimulationAlgorithm algorithm.

Parameters:
fo_distDistribution

The random vector to study.

to_distDistribution

The function to study.

outer_samplingint

The number of iterations.

block_sizeint

The batch size.

Examples

>>> import openturns as ot
>>> ot.RandomGenerator.SetSeed(0)
>>> fo_dist = ot.Normal([0.154081,0.872087,0.0122877,0.0433801], [0.00982468,0.0302524,0.00911937,0.00926643], ot.CorrelationMatrix(4))
>>> to_dist = ot.Normal([0.16743,0.795477,0.0124454,0.045178], [0.0068919,0.00950876,0.00204324,0.0038844], ot.CorrelationMatrix(4))
>>> result = ot.SobolSimulationResult(fo_dist, to_dist, 250, 100)
>>> fo = result.getFirstOrderIndicesEstimate()
>>> to = result.getTotalOrderIndicesEstimate()
>>> fo_dist = result.getFirstOrderIndicesDistribution()
>>> to_dist = result.getTotalOrderIndicesDistribution()
>>> graph = result.draw()

Methods

draw([confidenceLevel])

Draw sensitivity indices.

getBlockSize()

Accessor to the block size.

getClassName()

Accessor to the object's name.

getFirstOrderIndicesDistribution()

Accessor to the first order indices distribution.

getFirstOrderIndicesEstimate()

Accessor to the first order indices estimate.

getId()

Accessor to the object's id.

getName()

Accessor to the object's name.

getOuterSampling()

Accessor to the outer sampling.

getShadowedId()

Accessor to the object's shadowed id.

getTotalOrderIndicesDistribution()

Accessor to the total order indices distribution.

getTotalOrderIndicesEstimate()

Accessor to the total order indices estimate.

getVisibility()

Accessor to the object's visibility state.

hasName()

Test if the object is named.

hasVisibleName()

Test if the object has a distinguishable name.

setBlockSize(blockSize)

Accessor to the block size.

setFirstOrderIndicesDistribution(...)

Accessor to the first order indices distribution.

setName(name)

Accessor to the object's name.

setOuterSampling(outerSampling)

Accessor to the outer sampling.

setShadowedId(id)

Accessor to the object's shadowed id.

setTotalOrderIndicesDistribution(...)

Accessor to the total order indices distribution.

setVisibility(visible)

Accessor to the object's visibility state.

__init__(*args)
draw(confidenceLevel=0.95)

Draw sensitivity indices.

Parameters:
confidence_levelfloat, default=0.95

Confidence level for intervals

Returns:
graphGraph

A graph containing the aggregated first and total order indices.

getBlockSize()

Accessor to the block size.

Returns:
blockSizeint

Number of terms in the probability simulation estimator grouped together.

getClassName()

Accessor to the object’s name.

Returns:
class_namestr

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

getFirstOrderIndicesDistribution()

Accessor to the first order indices distribution.

Returns:
distributionDistribution

Distribution of the first order indices.

getFirstOrderIndicesEstimate()

Accessor to the first order indices estimate.

Returns:
estimatePoint

Estimate of the first order indices.

getId()

Accessor to the object’s id.

Returns:
idint

Internal unique identifier.

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

getOuterSampling()

Accessor to the outer sampling.

Returns:
outerSamplingint

Number of groups of terms in the probability simulation estimator.

getShadowedId()

Accessor to the object’s shadowed id.

Returns:
idint

Internal unique identifier.

getTotalOrderIndicesDistribution()

Accessor to the total order indices distribution.

Returns:
distributionDistribution

Distribution of the total order indices.

getTotalOrderIndicesEstimate()

Accessor to the total order indices estimate.

Returns:
estimatePoint

Estimate of the total order indices.

getVisibility()

Accessor to the object’s visibility state.

Returns:
visiblebool

Visibility flag.

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

hasVisibleName()

Test if the object has a distinguishable name.

Returns:
hasVisibleNamebool

True if the name is not empty and not the default one.

setBlockSize(blockSize)

Accessor to the block size.

Parameters:
blockSizeint, blockSize \geq 0

Number of terms in the probability simulation estimator grouped together.

setFirstOrderIndicesDistribution(firstOrderIndicesDistribution)

Accessor to the first order indices distribution.

Parameters:
distributionDistribution

Distribution of the first order indices.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

setOuterSampling(outerSampling)

Accessor to the outer sampling.

Parameters:
outerSamplingint, outerSampling \geq 0

Number of groups of terms in the probability simulation estimator.

setShadowedId(id)

Accessor to the object’s shadowed id.

Parameters:
idint

Internal unique identifier.

setTotalOrderIndicesDistribution(totalOrderIndicesDistribution)

Accessor to the total order indices distribution.

Parameters:
distributionDistribution

Distribution of the total order indices.

setVisibility(visible)

Accessor to the object’s visibility state.

Parameters:
visiblebool

Visibility flag.