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


campsis documentation built on Sept. 11, 2024, 7:18 p.m.