xf function

x coordinate of a ternary forecast in barycentric coordinates

x coordinate of a ternary forecast in barycentric coordinates

This is a utility function to calculate the x-coordinate of a point in barycentric coordinates. It is unlikely that the user will want to use this function directly.

xf(p = cbind(1, 1, 1)/3, M = tsetup()$M32)

Arguments

  • p: An n-by-3 matrix of ternary forecasts.
  • M: A 2-by-3 matrix describing the transfromation for R^3 to R^2.

Returns

An n-by-1 array of x-values for use in plotting.

References

Jupp TE, Lowe R, Stephenson DB, Coelho CAS (2012) On the visualization, verification and recalibration of ternary probabilistic forecasts, Philosophical Transactions of the Royal Society, volume 370, pages 1100-1120.

https://rsta.royalsocietypublishing.org/content/370/1962/1100.full/

https://arxiv.org/abs/1103.1303/

Author(s)

Tim Jupp

See Also

tsetup, yf

Examples

xf(p=cbind(.1,.2,.7))
  • Maintainer: Tim Jupp
  • License: GPL-2
  • Last published: 2025-03-28

Useful links