apriori.density: Returns a standard a-priori density function

Description Usage Arguments Value Examples

View source: R/mean_diff_weighted.R

Description

Let U denote the uniform distribution on [0,1], T the triangle distribution with center point 0.5 and full support on [0,1] and HT the half-triangle distribution with center point 0.5 and support on [0.25, 0.75]. This function returns one of these a-priori densities in dependence of its input parameter. These three a-priori distributions are deemed as helpful in experimenting with the Schuirmann constant.

Usage

1
apriori.density(density.id)

Arguments

density.id

'U', 'T' or 'HT', depending on which a-priori density should be returned

Value

Uniform (U), triangle (T) or half triangle (HT) a-priori density function

Examples

1
2
3
4
 
rho <- apriori.density('T')
r <- seq(0, 1, length = 100)
plot(r, rho(r), type = 'l')

cpalmes/schuirmann.constant documentation built on Dec. 31, 2020, 10:07 p.m.