-
Notifications
You must be signed in to change notification settings - Fork 0
/
Glicko2.h
33 lines (26 loc) · 871 Bytes
/
Glicko2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*******************************************************************************
GLICKO 2
Implements the Glicko 2 ranking system
By Justin Yek (modified from work by Heungsub Lee)
*******************************************************************************/
@class Glicko2;
@interface Glicko2 : NSObject
// Ratings
@property float mu; // mean
@property float phi; //
@property float sigma; // uncertainty
// Other parameters
@property float alpha;
@property float diff;
@property float variance;
- (id) init;
- (id) initWithRatingMu:(float)_mu phi:(float)_phi sigma:(float)_sigma;
- (void) printRating;
- (void) scaleDown;
- (void) scaleUp;
- (float) reduceImpact;
- (float) determineSigma;
- (float) f:(float)x;
- (void) rateSingle:(float)score ratings:(Glicko2*)otherRating;
- (void) rate:(NSArray*)scores ratings:(NSArray*)ratings;
@end