tscale: Rescale a 3-vector to yield a ternary forecast

Description Usage Arguments Details Value Author(s) Examples

Description

Utility function to rescale 3-vectors to be probability distributions.

Usage

1
tscale(p)

Arguments

p

a vector of length 3.

Details

A utility function.

Value

A vector of length 3 rescaled so that elements are all >= 0 and sum to unity.

Author(s)

Tim Jupp

Examples

1
tscale(cbind(1,2,3))  # rescale (1,2,3) to be a ternary forecast.

ternvis documentation built on July 5, 2019, 5:03 p.m.