UNPKG

glicko-ts

Version:

A TypeScript implementation of the Glicko-1 rating system.

16 lines (15 loc) 551 B
export declare class MathUtils { /** * Calculates the g(RD) function, which dampens the effect of the opponent's RD. * @param rd The rating deviation of the opponent. * @returns The dampened RD value. */ static g(rd: number, q: number): number; /** * Rounds a number to a specified number of decimal places. * @param num The number to round. * @param places The number of decimal places. * @returns The rounded number. */ static roundToDecimalPlaces(num: number, places: number): number; }