StochasticParameter#

class ansys.optislang.core.project_parametric.StochasticParameter(name: str = '', reference_value: float = 0, id: str | None = None, const: bool = False, stochastic_resolution: ParameterResolution | str = ParameterResolution.MARGINALDISTRIBUTION, distribution_type: DistributionType | str = DistributionType.NORMAL, distribution_parameters: Sequence[float] | None = None, statistical_moments: Sequence[float] | None = None, cov: float | None = None)#

Stores stochastic parameter data.

Methods

StochasticParameter.from_dict(par_dict)

Create an instance of the Parameter class from optiSLang output.

StochasticParameter.to_dict()

Convert an instance of the StochasticParameter to dictionary.

Attributes

StochasticParameter.const

Whether the value for the parameter is a constant.

StochasticParameter.cov

COV of the distribution.

StochasticParameter.distribution_parameters

Parameters of the distribution.

StochasticParameter.distribution_type

Type of the distribution.

StochasticParameter.id

ID of the parameter.

StochasticParameter.name

Name of the parameter.

StochasticParameter.reference_value

Reference value of the parameter.

StochasticParameter.reference_value_type

Type of the reference value``.

StochasticParameter.statistical_moments

Statistical moments of the distribution.

StochasticParameter.stochastic_resolution

Type of the stochastic resolution.

StochasticParameter.type

Type of the parameter.