Property | Type | Description | |
---|---|---|---|
$_expectedA | |||
$_expectedB | |||
$_newRatingA | |||
$_newRatingB | |||
$_ratingA | Protected & private variables. | ||
$_ratingB | |||
$_scoreA | |||
$_scoreB |
Method | Description | |
---|---|---|
__construct ( $ratingA, $ratingB, $scoreA, $scoreB ) | Costructor function which does all the maths and stores the results ready for retrieval. | |
getNewRatings ( ) : Array | Retrieve the calculated data. | |
setNewSettings ( $ratingA, $ratingB, $scoreA, $scoreB ) | Set new input data. |
Method | Description | |
---|---|---|
_getExpectedScores ( $ratingA, $ratingB ) | Protected & private functions begin here | |
_getNewRatings ( $ratingA, $ratingB, $expectedA, $expectedB, $scoreA, $scoreB ) |
public __construct ( $ratingA, $ratingB, $scoreA, $scoreB ) |
protected _getExpectedScores ( $ratingA, $ratingB ) |
protected _getNewRatings ( $ratingA, $ratingB, $expectedA, $expectedB, $scoreA, $scoreB ) |
public getNewRatings ( ) : Array | ||
return | Array | An array containing the new ratings for A and B. |
public setNewSettings ( $ratingA, $ratingB, $scoreA, $scoreB ) |