process_dist_name {BNPdensity}R Documentation

Process the distribution name argument into a distribution index

Description

This function is intended to help with compatibility with the previous versions of the package.

Usage

process_dist_name(distname)

Arguments

distname

Can be an integer or a distribution name. Allowed names are "normal", "gamma", "beta", "exponential", "lognormal", "half-Cauchy", "half-normal", "half-student", "uniform" and "truncated normal", or their common abbreviations "norm", "exp", "halfcauchy", "halfnorm", "halft" and "unif".

Value

an integer both if distname is an integer or a character


[Package BNPdensity version 2023.3.8 Index]