← All procedures

statistics.glicko2Idle

The Glicko-2 rating of a player after a rating period with no games. The rating and the volatility stay the same. The RD grows to `sqrt(RD^2 + (173.7178 * volatility)^2)`.

CLI
Package
@procedures/statistics · README
Path
["statistics","glicko2Idle"]
CLI
mark statistics glicko2Idle --player <object>
As data
{"$proc":["statistics","glicko2Idle"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/statistics/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["statistics","glicko2Idle"], { player: {} });
console.log(JSON.stringify(result));

From the command line

$ mark statistics glicko2Idle --player <object>

As data, in a program

{ "$proc": ["statistics", "glicko2Idle"], "input": { "player": {} } }

Input

FieldTypeRequiredDefaultDescription
playerobjectyes

Output

FieldTypeRequiredDefaultDescription
ratingnumberyes
rdnumberyesThe rating deviation, in rating points. It is above 0.
volatilitynumberyesThe volatility: the expected size of a change of the true strength in one rating period. It is above 0.
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "player": {
        "type": "object",
        "properties": {
          "rating": {
            "type": "number"
          },
          "rd": {
            "type": "number",
            "description": "The rating deviation, in rating points. It is above 0."
          },
          "volatility": {
            "type": "number",
            "description": "The volatility: the expected size of a change of the true strength in one rating period. It is above 0."
          }
        },
        "required": [
          "rating",
          "rd",
          "volatility"
        ],
        "additionalProperties": {}
      }
    },
    "required": [
      "player"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "object",
    "properties": {
      "rating": {
        "type": "number"
      },
      "rd": {
        "type": "number",
        "description": "The rating deviation, in rating points. It is above 0."
      },
      "volatility": {
        "type": "number",
        "description": "The volatility: the expected size of a change of the true strength in one rating period. It is above 0."
      }
    },
    "required": [
      "rating",
      "rd",
      "volatility"
    ],
    "additionalProperties": {}
  }
}