def reldiag_compute(reldiag):
    """
    Compute the x- and y- coordinates of the points in the reliability diagram.

    Parameters
    ----------
    reldiag: dict
      A reliability diagram object created with reldiag_init.

    Returns
    -------
    out: tuple
      Two-element tuple containing the x- and y-coordinates of the points in
      the reliability diagram.
    """
    f = 1.0 * reldiag["Y_sum"] / reldiag["num_idx"]
    r = 1.0 * reldiag["X_sum"] / reldiag["num_idx"]

    return r, f
Compute the x- and y- coordinates of the points in the reliability diagram.

Parameters
----------
reldiag: dict
A reliability diagram object created with reldiag_init.

Returns
-------
out: tuple
Two-element tuple containing the x- and y-coordinates of the points in
the reliability diagram.
pysteps/verification/probscores.py