Computes the positively oriented spherical score. Vector probability input is treated as binary; matrix probability input is treated as categorical.
Details
For binary forecasts, this computes $$S(p, y) =
\frac{py + (1-p)(1-y)}{\sqrt{p^2 + (1-p)^2}}.$$
For categorical forecasts, this computes $$S(\mathbf{p}, y) =
\frac{p_y}{\|\mathbf{p}\|_2},$$
where p_y is the forecast probability assigned to the realised category.
Score differences lie in [-1, 1], so use c = 1 for Theorem 1 and
c = 2 for Theorems 2 and 3.