toExplicitDistribution: Convert user-given distribution to an explicit CAMPSIS...

View source: R/utilities.R

toExplicitDistributionR Documentation

Convert user-given distribution to an explicit CAMPSIS distribution. Passed distribution can be: - a NULL value. In that case, it will be converted into an 'UndefinedDistribution'. - a single numeric value. In that case, it will be converted into a 'ConstantDistribution'. - a numeric vector. In that case, it will be converted into a 'FixedDistribution'. - all available types of distribution. In this case, no conversion is applied.

Description

Convert user-given distribution to an explicit CAMPSIS distribution. Passed distribution can be: - a NULL value. In that case, it will be converted into an 'UndefinedDistribution'. - a single numeric value. In that case, it will be converted into a 'ConstantDistribution'. - a numeric vector. In that case, it will be converted into a 'FixedDistribution'. - all available types of distribution. In this case, no conversion is applied.

Usage

toExplicitDistribution(distribution)

Arguments

distribution

user-given distribution

Value

a distribution object


Calvagone/campsis documentation built on Nov. 29, 2024, 10:01 p.m.