mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-02 02:44:41 +02:00
21 lines
465 B
C#
21 lines
465 B
C#
![]() |
using System;
|
|||
|
|
|||
|
namespace Moserware.Skills.Elo
|
|||
|
{
|
|||
|
public class GaussianKFactor : KFactor
|
|||
|
{
|
|||
|
// From paper
|
|||
|
const double StableDynamicsKFactor = 24.0;
|
|||
|
|
|||
|
public GaussianKFactor()
|
|||
|
: base(StableDynamicsKFactor)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public GaussianKFactor(GameInfo gameInfo, double latestGameWeightingFactor)
|
|||
|
: base(latestGameWeightingFactor * gameInfo.Beta * Math.Sqrt(Math.PI))
|
|||
|
{
|
|||
|
}
|
|||
|
}
|
|||
|
}
|