split glicko2 test out into separate file. glicko2 now ready to be included in application (xmlrate for instance)
This commit is contained in:
1 parent
cd091b0dc4
commit
38529d8e74
2 files changed
+27
-14
No files matched your search
@@ -214,17 +214,3 @@ class Glicko2
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
A = Glicko2.new(1500.0, 200.0, 0.06)
|
||||
B = Glicko2.new(1400.0, 30.0, 0.06)
|
||||
C = Glicko2.new(1550.0, 100.0, 0.06)
|
||||
D = Glicko2.new(1700.0, 300.0, 0.06)
|
||||
|
||||
A.add_win(B)
|
||||
A.add_loss(C)
|
||||
A.add_result(D,0.0)
|
||||
|
||||
A.update()
|
||||
|
||||
print "rating ", A.rating, " deviation ", A.deviation
|
||||
|
||||
Reference in new issue
Block a user