Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

MultivariateDistributionTypes Class Reference

Last update: 16.07.2025

encalsulates ENUM constants defining supported distribution types More...

Public Types

enum  enum_type {
  NONE = 0, TRUNCATED_NORMAL, GAUSSIAN, BETA,
  GAMMA, GAMMA_REVERSE
}
 an enum type defining all supported distribution types More...
 

Static Public Member Functions

static enum_type string2enum (string ident)
 tries to identify the distribution type enum from a string ident More...
 

Static Public Attributes

static std::vector< string > type_idents
 a mapping between the enum representing the distribution type and a unique string ident Example: type_idents[TRUNCATED_NORMAL] = "truncated normal";
 

Detailed Description

encalsulates ENUM constants defining supported distribution types

Note
Important: To access, this enum, do ONLY include this header in .CPP files!!! This is to avoid a recompilation of too many files if a single distribution type is added to the list of enums.

Member Enumeration Documentation

◆ enum_type

enum enum_type

an enum type defining all supported distribution types

Enumerator
NONE 

no distribution (space holder)

TRUNCATED_NORMAL 

(left and right) truncated normal distribution

GAUSSIAN 

Gaussian distribution.

BETA 

Beta distribution with modifyable bounds.

GAMMA 

Gamma distribution with modifyable left bound.

GAMMA_REVERSE 

Mirrored Gamma distribution being mirrored at the bound (being bounded to the right).

Member Function Documentation

◆ string2enum()

static enum_type string2enum ( string  ident)
static

tries to identify the distribution type enum from a string ident

Parameters
identthe string ident
Returns
the enum ident
Exceptions
exceptionif the ident is not valid/existing

Connect with Ansys