use of jskills.trueskill.factors.GaussianFactor 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);
}
}
Aggregations