We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This works fine:
@Test public void testOk() { GameInfo gameInfo = new GameInfo(1500, 500, 240, 10, 0.1); Collection<ITeam> ts = Arrays.asList( new Team().addPlayer(new jskills.Player<>(1), new Rating(3453, 74)), new Team().addPlayer(new jskills.Player<>(2), new Rating(38, 181)) ); Map<IPlayer, Rating> newRatings = TrueSkillCalculator.calculateNewRatings(gameInfo, new ArrayList<>(ts), 1, 2); newRatings.forEach((iPlayer, rating) -> System.out.println(rating)); }
Output:
Mean(μ)=3453.000000, Std-Dev(σ)=74.672619 Mean(μ)=38.000000, Std-Dev(σ)=181.276033
While this produces NaN (note that only player 2's deviation has been changed)
@Test public void testNaN() { GameInfo gameInfo = new GameInfo(1500, 500, 240, 10, 0.1); Collection<ITeam> ts = Arrays.asList( new Team().addPlayer(new jskills.Player<>(1), new Rating(3453, 74)), new Team().addPlayer(new jskills.Player<>(2), new Rating(38, 180)) ); Map<IPlayer, Rating> newRatings = TrueSkillCalculator.calculateNewRatings(gameInfo, new ArrayList<>(ts), 1, 2); newRatings.forEach((iPlayer, rating) -> System.out.println(rating)); }
Mean(μ)=NaN, Std-Dev(σ)=74.672619 Mean(μ)=38.000000, Std-Dev(σ)=180.277564
The text was updated successfully, but these errors were encountered:
Same Bug in Skills (moserware#12)
Sorry, something went wrong.
@micheljung Please review the code.
LGTM
No branches or pull requests
This works fine:
Output:
While this produces NaN (note that only player 2's deviation has been changed)
Output:
The text was updated successfully, but these errors were encountered: