Skip to content
Symi Docs
WASM / JavaScript

Signatures in the WASM / JavaScript view are TypeScript. Where the JavaScript facade wraps an operation its form is listed first; the other calling forms are the raw wasm-bindgen exports.

On this page

Statistics

Symbolic probability distributions, joint laws, and random-variable algebra. A distribution node names a parametrised family; a random variable node names a draw from a distribution. Distinct draws are not independent unless they share an explicit independent-product law. The complete distribution registry lists every accepted family, its ordered parameters, support, and closed-form operations. The canonical names for the gamma and beta families are gamma_distribution and beta_distribution.

distribution#

Raw WebAssembly: Default context

distribution(name: string, parameters: Expression[]): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.distribution

distribution(name: string, parameters: Expression[]): Expression

Build a distribution node from a family name and its ordered parameter list (e.g. distribution("normal", [mean, standard_deviation])). An unknown name raises an invalid-option error. A parameter count that does not match the family's arity raises a collection-shape error; it does not create an undefined mathematical value.

random_variable#

Not exposed by the WASM / JavaScript bindings. Available as Context.random_variable in Python, UniffiSession.randomVariable in Kotlin, UniffiSession.randomVariable in Swift, api::probability::Session::random_variable in Rust.

Build a random variable named name drawn from distribution. Each call creates a distinct coordinate identity, even when its display name is reused.

multivariate_normal#

Not exposed by the WASM / JavaScript bindings. Available as Context.multivariate_normal in Python, UniffiSession.multivariateNormal in Kotlin, UniffiSession.multivariateNormal in Swift, api::probability::Session::multivariate_normal in Rust.

Construct an ordinary multivariate normal law from an ordered real mean vector and a symmetric positive-definite covariance matrix.

multinomial_distribution#

Not exposed by the WASM / JavaScript bindings. Available as Context.multinomial_distribution in Python, UniffiSession.multinomialDistribution in Kotlin, UniffiSession.multinomialDistribution in Swift, api::probability::Session::multinomial_distribution in Rust.

Construct a multinomial law from a nonnegative integer trial count and ordered category probabilities summing exactly to one.

dirichlet#

Raw WebAssembly: Default context

dirichlet(parameters: Expression[]): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.dirichlet

dirichlet(parameters: Expression[]): Expression

Construct a Dirichlet law. Its density is relative to intrinsic simplex measure, not ambient Euclidean Lebesgue measure.

independent_product#

Not exposed by the WASM / JavaScript bindings. Available as Context.independent_product in Python, UniffiSession.independentProduct in Kotlin, UniffiSession.independentProduct in Swift, api::probability::Session::independent_product in Rust.

Construct the joint product law that explicitly certifies independence.

discrete_markov_chain#

Raw WebAssembly: Default context

discreteMarkovChain(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.discreteMarkovChain

discreteMarkovChain(): Expression

Construct a finite-state time-homogeneous Markov chain with ordered distinct state labels, an exact row-stochastic transition matrix, and an exact initial row law.

transition_probability#

Raw WebAssembly: Default context

transitionProbability(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.transitionProbability

transitionProbability(): Expression

Return the exact finite-horizon transition probability for a finite Markov chain. The horizon must be a proved nonnegative integer.

stationary_distributions#

Raw WebAssembly: Default context

stationaryDistributions(): Matrix
Calling forms

Raw WebAssembly: Explicit context: Context.stationaryDistributions

stationaryDistributions(): Matrix

Return one row for every extreme stationary law. All stationary laws are the convex combinations of these rows in the process state order.

hitting_probability#

Raw WebAssembly: Default context

hittingProbability(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.hittingProbability

hittingProbability(): Expression

Return the exact probability that the chain ever reaches one of the target states from start_state.

expected_hitting_time#

Raw WebAssembly: Default context

expectedHittingTime(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.expectedHittingTime

expectedHittingTime(): Expression

Return the exact expected time to reach a target state set. The result is positive infinity when the target is not reached almost surely.

affine_process_transformation#

Raw WebAssembly: Default context

affineProcessTransformation(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.affineProcessTransformation

affineProcessTransformation(
    name: string,
    source: Expression,
    multiplier: Expression,
    offset: Expression,
): Expression

Construct the pointwise affine image offset + multiplier * source of a certified Gaussian process.

independent_gaussian_process_sum#

Raw WebAssembly: Default context

independentGaussianProcessSum(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.independentGaussianProcessSum

independentGaussianProcessSum(
    name: string,
    first_source: Expression,
    second_source: Expression,
): Expression

Construct the pointwise sum of two explicitly independent Gaussian processes on the same index domain.

finite_dimensional_random_vector#

Raw WebAssembly: Default context

finiteDimensionalRandomVector(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.finiteDimensionalRandomVector

finiteDimensionalRandomVector(
    process: Expression,
    indices: Expression[],
    coordinate_names: string[],
): Expression

Construct the ordered random-vector handle for a finite process slice, using the shared joint-law and conditioning operations.

conditional_process_slice_distribution#

Raw WebAssembly: Default context

conditionalProcessSliceDistribution(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.conditionalProcessSliceDistribution

conditionalProcessSliceDistribution(
    process: Expression,
    selected_indices: Expression[],
    conditioning_indices: Expression[],
    conditioning_values: Expression[],
): Expression

Condition an ordered finite process slice on another ordered slice at explicit values through the shared continuous conditional-law engine. The operation declines or remains unevaluated when the conditioning marginal has no certified density.

independent_process_product#

Raw WebAssembly: Default context

independentProcessProduct(): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.independentProcessProduct

independentProcessProduct(
    first_process: Expression,
    first_indices: Expression[],
    second_process: Expression,
    second_indices: Expression[],
): Expression

Construct the explicit block-independent joint law of two finite process slices.

product_copula#

Not exposed by the WASM / JavaScript bindings. Available as Context.product_copula in Python, UniffiSession.productCopula in Kotlin, UniffiSession.productCopula in Swift, api::probability::Session::product_copula in Rust.

Construct the product copula of at least two continuous marginals with exact CDF and density descriptors. The result is the certified independent product law.

gaussian_copula#

Not exposed by the WASM / JavaScript bindings. Available as Context.gaussian_copula in Python, UniffiSession.gaussianCopula in Kotlin, UniffiSession.gaussianCopula in Swift, api::probability::Session::gaussian_copula in Rust.

Construct a Gaussian copula from continuous marginals and a symmetric positive-semidefinite unit-diagonal correlation matrix. Its density remains unevaluated unless the system gains an exact normal-quantile representation.

archimedean_copula#

Not exposed by the WASM / JavaScript bindings. Available as Context.archimedean_copula in Python, UniffiSession.archimedeanCopula in Kotlin, UniffiSession.archimedeanCopula in Swift, api::probability::Session::archimedean_copula in Rust.

Construct a Clayton, Frank, or Gumbel copula from continuous marginals. The parameter domain is checked exactly; arbitrary generator expressions are not accepted as copulas.

estimate_archimedean_copula_parameter#

Not exposed by the WASM / JavaScript bindings. Available as Context.estimate_archimedean_copula_parameter in Python, UniffiSession.estimateArchimedeanCopulaParameter in Kotlin, UniffiSession.estimateArchimedeanCopulaParameter in Swift, api::probability::Session::estimate_archimedean_copula_parameter in Rust.

Estimate a Clayton or Gumbel parameter by exactly inverting bivariate Kendall's tau. Observations must have exactly two columns and every pairwise order must be exact and strict, so ties and undecidable comparisons decline.

estimate_archimedean_copula_parameter_numeric#

Not exposed by the WASM / JavaScript bindings. Available as Context.estimate_archimedean_copula_parameter_numeric in Python, UniffiSession.estimateArchimedeanCopulaParameterNumeric in Kotlin, UniffiSession.estimateArchimedeanCopulaParameterNumeric in Swift, api::probability::Session::estimate_archimedean_copula_parameter_numeric in Rust.

Explicitly request bracketed numerical Frank-parameter estimation. A result is returned only when the requested bracket and every needed numerical kernel can be certified; otherwise its typed decline explains why.

quantile_numeric#

Not exposed by the WASM / JavaScript bindings. Available as Context.quantile_numeric in Python, UniffiSession.quantileNumeric in Kotlin, UniffiSession.quantileNumeric in Swift, api::probability::Session::quantile_numeric in Rust.

Explicitly invert a scalar continuous CDF on an exact rational bracket. Symbolic probability operations never invoke this numerical operation implicitly.

order_statistic#

Not exposed by the WASM / JavaScript bindings. Available as Context.order_statistic in Python, UniffiSession.orderStatistic in Kotlin, UniffiSession.orderStatistic in Swift, api::probability::Session::order_statistic in Rust.

Construct the rank order statistic of an i.i.d. sample from a scalar law. Both sample size and rank must be positive exact integers, and rank cannot exceed sample size.

minimum#

Raw WebAssembly: Default context

minimum(base_law: Expression, sample_size: Expression): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.minimum

minimum(base_law: Expression, sample_size: Expression): Expression

Construct the smallest member of an i.i.d. sample from a scalar law.

maximum#

Raw WebAssembly: Default context

maximum(base_law: Expression, sample_size: Expression): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.maximum

maximum(base_law: Expression, sample_size: Expression): Expression

Construct the largest member of an i.i.d. sample from a scalar law.

random_vector#

Not exposed by the WASM / JavaScript bindings. Available as Context.random_vector in Python, UniffiSession.randomVector in Kotlin, UniffiSession.randomVector in Swift, api::probability::Session::random_vector in Rust.

Construct an ordered vector of fresh coordinate handles for a joint law.

joint_distribution#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_distribution in Python, UniffiSession.jointDistribution in Kotlin, UniffiSession.jointDistribution in Swift, api::probability::Session::joint_distribution in Rust.

Return a random vector's joint law.

component#

Raw WebAssembly: Default context

component(random_vector: Expression, position: number): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.component

component(random_vector: Expression, position: number): Expression

Select one coordinate by zero-based position.

marginal#

Raw WebAssembly: Default context

marginal(
    joint_distribution: Expression,
    positions: Uint32Array,
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.marginal

marginal(
    joint_distribution: Expression,
    positions: Uint32Array,
): Expression

Return the distinct ordered coordinate projection of a joint law.

permute#

Raw WebAssembly: Default context

permute(
    joint_distribution: Expression,
    permutation: Uint32Array,
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.permute

permute(
    joint_distribution: Expression,
    permutation: Uint32Array,
): Expression

Reorder every coordinate by a permutation.

joint_density#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_density in Python, UniffiSession.jointDensity in Kotlin, UniffiSession.jointDensity in Swift, api::probability::Session::joint_density in Rust.

Evaluate an ordinary joint density at an ordered point. Laws without an ordinary density retain an unevaluated query.

intrinsic_simplex_density#

Not exposed by the WASM / JavaScript bindings. Available as Context.intrinsic_simplex_density in Python, UniffiSession.intrinsicSimplexDensity in Kotlin, UniffiSession.intrinsicSimplexDensity in Swift, api::probability::Session::intrinsic_simplex_density in Rust.

Evaluate a Dirichlet density relative to its intrinsic simplex measure.

joint_probability_mass_function#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_probability_mass_function in Python, UniffiSession.jointProbabilityMassFunction in Kotlin, UniffiSession.jointProbabilityMassFunction in Swift, api::probability::Session::joint_probability_mass_function in Rust.

Evaluate a joint point mass at an ordered point.

joint_cumulative_distribution#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_cumulative_distribution in Python, UniffiSession.jointCumulativeDistribution in Kotlin, UniffiSession.jointCumulativeDistribution in Swift, api::probability::Session::joint_cumulative_distribution in Rust.

Evaluate the lower-orthant cumulative distribution at an ordered point.

joint_rectangle_probability#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_rectangle_probability in Python, UniffiSession.jointRectangleProbability in Kotlin, UniffiSession.jointRectangleProbability in Swift, api::probability::Session::joint_rectangle_probability in Rust.

Evaluate the ordered rectangle probability (lower, upper].

joint_support#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_support in Python, UniffiSession.jointSupport in Kotlin, UniffiSession.jointSupport in Swift, api::probability::Session::joint_support in Rust.

Return the exact support of a joint law when available.

joint_raw_moment#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_raw_moment in Python, UniffiSession.jointRawMoment in Kotlin, UniffiSession.jointRawMoment in Swift, api::probability::Session::joint_raw_moment in Rust.

Return an exact multi-index raw moment when known.

joint_mean#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_mean in Python, UniffiSession.jointMean in Kotlin, UniffiSession.jointMean in Swift, api::probability::Session::joint_mean in Rust.

Return the ordered exact mean entries of a joint law.

joint_covariance_matrix#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_covariance_matrix in Python, UniffiSession.jointCovarianceMatrix in Kotlin, UniffiSession.jointCovarianceMatrix in Swift, api::probability::Session::joint_covariance_matrix in Rust.

Return the exact covariance matrix of a joint law.

joint_correlation_matrix#

Not exposed by the WASM / JavaScript bindings. Available as Context.joint_correlation_matrix in Python, UniffiSession.jointCorrelationMatrix in Kotlin, UniffiSession.jointCorrelationMatrix in Swift, api::probability::Session::joint_correlation_matrix in Rust.

Return the correlation matrix when coordinate variances are proved positive.

density#

Raw WebAssembly: Default context

density(random_variable: Expression, point: Expression): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.density

density(random_variable: Expression, point: Expression): Expression

Probability density (continuous families) or probability mass (discrete families) of random_variable evaluated at point. Falls back to an unevaluated structural form when no closed form exists.

cumulative_distribution#

Not exposed by the WASM / JavaScript bindings. Available as Context.cumulative_distribution in Python, UniffiSession.cumulativeDistribution in Kotlin, UniffiSession.cumulativeDistribution in Swift, api::probability::Session::cumulative_distribution in Rust.

Cumulative distribution function of random_variable evaluated at point.

expectation#

Raw WebAssembly: Default context

expectation(
    target: Expression,
    random_variables: Expression[],
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.expectation

expectation(
    target: Expression,
    random_variables: Expression[],
): Expression

Expectation of target over the listed independent random variables. Linearity and the constant-factor lift are applied; bare and power-of-random-variable leaves consume the distribution's mean and raw moments.

variance#

Raw WebAssembly: Default context

variance(target: Expression, random_variables: Expression[]): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.variance

variance(target: Expression, random_variables: Expression[]): Expression

Variance of target over the listed independent random variables.

covariance#

Raw WebAssembly: Default context

covariance(
    left: Expression,
    right: Expression,
    random_variables: Expression[],
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.covariance

covariance(
    left: Expression,
    right: Expression,
    random_variables: Expression[],
): Expression

Covariance of left and right over the listed independent random variables; zero for independent operands.

probability#

Raw WebAssembly: Default context

probability(
    predicate: Expression,
    random_variables: Expression[],
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.probability

probability(
    predicate: Expression,
    random_variables: Expression[],
): Expression

Probability that predicate (a tail comparison such as X > t) holds over the listed independent random variables.

moment#

Raw WebAssembly: Default context

moment(random_variable: Expression, order: Expression): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.moment

moment(random_variable: Expression, order: Expression): Expression

The order-th raw moment E[X^order] of random_variable.

cumulant#

Raw WebAssembly: Default context

cumulant(random_variable: Expression, order: Expression): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.cumulant

cumulant(random_variable: Expression, order: Expression): Expression

The order-th cumulant of random_variable.

moment_generating_function#

Not exposed by the WASM / JavaScript bindings. Available as Context.moment_generating_function in Python, UniffiSession.momentGeneratingFunction in Kotlin, UniffiSession.momentGeneratingFunction in Swift, api::probability::Session::moment_generating_function in Rust.

Closed-form moment generating function M_X(t) of random_variable in the named auxiliary variable, when elementary; otherwise an unevaluated structural form.

characteristic_function#

Not exposed by the WASM / JavaScript bindings. Available as Context.characteristic_function in Python, UniffiSession.characteristicFunction in Kotlin, UniffiSession.characteristicFunction in Swift, api::probability::Session::characteristic_function in Rust.

Closed-form characteristic function φX(t)\varphi_X(t) of random_variable in the named auxiliary variable, when elementary; otherwise an unevaluated structural form.

Example#

This family is not part of the recommended JavaScript facade in this release. Call it through the generated symi.raw layer, whose entries are listed with their wasm-bindgen signatures above, and read Migration for the ownership rules that apply there.

Additional API#

archimedeanCopula#

Raw WebAssembly: Default context

archimedeanCopula(family: string): Expression

Construct a supported Archimedean copula from continuous marginals and its parameter.

Calling forms

Raw WebAssembly: Explicit context: Context.archimedeanCopula

archimedeanCopula(
    family: string,
    marginals: Expression[],
    parameter: Expression,
): Expression

characteristicFunction#

Raw WebAssembly: Default context

characteristicFunction(
    random_variable: Expression,
    auxiliary_variable: string,
): Expression

Closed-form characteristic function φX(t)\varphi_X(t) of random_variable in the named auxiliary variable, when elementary; otherwise an unevaluated structural form.

Calling forms

Raw WebAssembly: Explicit context: Context.characteristicFunction

characteristicFunction(
    random_variable: Expression,
    auxiliary_variable: string,
): Expression

cumulativeDistribution#

Raw WebAssembly: Default context

cumulativeDistribution(
    random_variable: Expression,
    point: Expression,
): Expression

Cumulative distribution function of random_variable evaluated at point.

Calling forms

Raw WebAssembly: Explicit context: Context.cumulativeDistribution

cumulativeDistribution(
    random_variable: Expression,
    point: Expression,
): Expression

estimateArchimedeanCopulaParameter#

Raw WebAssembly: Default context

estimateArchimedeanCopulaParameter(family: string): Expression

Estimate an exactly invertible Archimedean copula parameter from bivariate ranks.

Calling forms

Raw WebAssembly: Explicit context: Context.estimateArchimedeanCopulaParameter

estimateArchimedeanCopulaParameter(
    family: string,
    observations: Matrix,
): Expression

estimateArchimedeanCopulaParameterNumeric#

Raw WebAssembly: Default context

estimateArchimedeanCopulaParameterNumeric(family: string): NumericRootFindingResult

Numerically estimate a Frank copula parameter from exact bivariate ranks in a requested bracket.

Calling forms

Raw WebAssembly: Explicit context: Context.estimateArchimedeanCopulaParameterNumeric

estimateArchimedeanCopulaParameterNumeric(
    family: string,
    observations: Matrix,
    parameter: string,
): NumericRootFindingResult

gaussianCopula#

Raw WebAssembly: Default context

gaussianCopula(marginals: Expression[], correlation: Matrix): Expression

Construct a Gaussian copula from continuous marginals and a correlation matrix.

Calling forms

Raw WebAssembly: Explicit context: Context.gaussianCopula

gaussianCopula(marginals: Expression[], correlation: Matrix): Expression

independentProduct#

Raw WebAssembly: Default context

independentProduct(factors: Expression[]): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.independentProduct

independentProduct(factors: Expression[]): Expression

intrinsicSimplexDensity#

Raw WebAssembly: Default context

intrinsicSimplexDensity(
    joint_distribution: Expression,
    points: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.intrinsicSimplexDensity

intrinsicSimplexDensity(
    joint_distribution: Expression,
    points: Expression[],
): Expression

jointCorrelationMatrix#

Raw WebAssembly: Default context

jointCorrelationMatrix(joint_distribution: Expression): Matrix

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointCorrelationMatrix

jointCorrelationMatrix(joint_distribution: Expression): Matrix

jointCovarianceMatrix#

Raw WebAssembly: Default context

jointCovarianceMatrix(joint_distribution: Expression): Matrix

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointCovarianceMatrix

jointCovarianceMatrix(joint_distribution: Expression): Matrix

jointCumulativeDistribution#

Raw WebAssembly: Default context

jointCumulativeDistribution(
    joint_distribution: Expression,
    points: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointCumulativeDistribution

jointCumulativeDistribution(
    joint_distribution: Expression,
    points: Expression[],
): Expression

jointDensity#

Raw WebAssembly: Default context

jointDensity(
    joint_distribution: Expression,
    points: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointDensity

jointDensity(
    joint_distribution: Expression,
    points: Expression[],
): Expression

jointDistribution#

Raw WebAssembly: Default context

jointDistribution(random_vector: Expression): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointDistribution

jointDistribution(random_vector: Expression): Expression

jointMean#

Raw WebAssembly: Default context

jointMean(joint_distribution: Expression): Expression[]

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointMean

jointMean(joint_distribution: Expression): Expression[]

jointProbabilityMassFunction#

Raw WebAssembly: Default context

jointProbabilityMassFunction(
    joint_distribution: Expression,
    points: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointProbabilityMassFunction

jointProbabilityMassFunction(
    joint_distribution: Expression,
    points: Expression[],
): Expression

jointRawMoment#

Raw WebAssembly: Default context

jointRawMoment(
    joint_distribution: Expression,
    orders: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointRawMoment

jointRawMoment(
    joint_distribution: Expression,
    orders: Expression[],
): Expression

jointRectangleProbability#

Raw WebAssembly: Default context

jointRectangleProbability(
    joint_distribution: Expression,
    lower_bounds: Expression[],
    upper_bounds: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointRectangleProbability

jointRectangleProbability(
    joint_distribution: Expression,
    lower_bounds: Expression[],
    upper_bounds: Expression[],
): Expression

jointSupport#

Raw WebAssembly: Default context

jointSupport(joint_distribution: Expression): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.jointSupport

jointSupport(joint_distribution: Expression): Expression

momentGeneratingFunction#

Raw WebAssembly: Default context

momentGeneratingFunction(
    random_variable: Expression,
    auxiliary_variable: string,
): Expression

Closed-form moment generating function M_X(t) of random_variable in the named auxiliary variable, when elementary; otherwise an unevaluated structural form.

Calling forms

Raw WebAssembly: Explicit context: Context.momentGeneratingFunction

momentGeneratingFunction(
    random_variable: Expression,
    auxiliary_variable: string,
): Expression

multinomialDistribution#

Raw WebAssembly: Default context

multinomialDistribution(
    trial_count: Expression,
    probabilities: Expression[],
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.multinomialDistribution

multinomialDistribution(
    trial_count: Expression,
    probabilities: Expression[],
): Expression

multivariateNormal#

Raw WebAssembly: Default context

multivariateNormal(mean: Expression[], covariance: Matrix): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.multivariateNormal

multivariateNormal(mean: Expression[], covariance: Matrix): Expression

orderStatistic#

Raw WebAssembly: Default context

orderStatistic(
    base_law: Expression,
    sample_size: Expression,
    rank: Expression,
): Expression

Construct the rank order statistic of an independent identically distributed sample.

Calling forms

Raw WebAssembly: Explicit context: Context.orderStatistic

orderStatistic(
    base_law: Expression,
    sample_size: Expression,
    rank: Expression,
): Expression

productCopula#

Raw WebAssembly: Default context

productCopula(marginals: Expression[]): Expression

Construct the product copula of continuous scalar marginals.

Calling forms

Raw WebAssembly: Explicit context: Context.productCopula

productCopula(marginals: Expression[]): Expression

quantileNumeric#

Raw WebAssembly: Default context

quantileNumeric(distribution: Expression): NumericRootFindingResult

Numerically invert a scalar distribution CDF on an explicitly supplied exact bracket.

Calling forms

Raw WebAssembly: Explicit context: Context.quantileNumeric

quantileNumeric(
    distribution: Expression,
    probability: Expression,
    variable: string,
): NumericRootFindingResult

randomVariable#

Raw WebAssembly: Default context

randomVariable(name: string, distribution: Expression): Expression

Build a random variable named name drawn from distribution.

Calling forms

Raw WebAssembly: Explicit context: Context.randomVariable

randomVariable(name: string, distribution: Expression): Expression

randomVector#

Raw WebAssembly: Default context

randomVector(
    coordinate_names: string[],
    joint_distribution: Expression,
): Expression

Expose the native joint-law operation on the default context.

Calling forms

Raw WebAssembly: Explicit context: Context.randomVector

randomVector(
    coordinate_names: string[],
    joint_distribution: Expression,
): Expression

Symi documentation · WASM / JavaScript