Search in sources :

Example 1 with GaussianGreaterThanFactor

use of jskills.trueskill.factors.GaussianGreaterThanFactor in project ACManager by kun368.

the class TeamDifferencesComparisonLayer method buildLayer.

@Override
public void buildLayer() {
    for (int i = 0; i < getInputVariablesGroups().size(); i++) {
        boolean isDraw = (teamRanks[i] == teamRanks[i + 1]);
        Variable<GaussianDistribution> teamDifference = getInputVariablesGroups().get(i).get(0);
        GaussianFactor factor = isDraw ? (GaussianFactor) new GaussianWithinFactor(epsilon, teamDifference) : new GaussianGreaterThanFactor(epsilon, teamDifference);
        AddLayerFactor(factor);
    }
}
Also used : GaussianDistribution(jskills.numerics.GaussianDistribution) GaussianFactor(jskills.trueskill.factors.GaussianFactor) GaussianGreaterThanFactor(jskills.trueskill.factors.GaussianGreaterThanFactor) GaussianWithinFactor(jskills.trueskill.factors.GaussianWithinFactor)

Aggregations

GaussianDistribution (jskills.numerics.GaussianDistribution)1 GaussianFactor (jskills.trueskill.factors.GaussianFactor)1 GaussianGreaterThanFactor (jskills.trueskill.factors.GaussianGreaterThanFactor)1 GaussianWithinFactor (jskills.trueskill.factors.GaussianWithinFactor)1