tscale function

Rescale a 3-vector to yield a ternary forecast

Rescale a 3-vector to yield a ternary forecast

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

tscale(p)

Arguments

  • p: a vector of length 3.

Details

A utility function.

Returns

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

Author(s)

Tim Jupp

Examples

tscale(cbind(1,2,3)) # rescale (1,2,3) to be a ternary forecast.
  • Maintainer: Tim Jupp
  • License: GPL-2
  • Last published: 2025-03-28

Useful links