mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00: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))
|
|
{
|
|
}
|
|
}
|
|
}
|