53 std::weak_ptr<NetworkPlayerProfile> profile;
60 std::map<uint32_t, RankingEntryAndProfile> m_entries;
63 std::map<uint32_t, RankingEntry> m_old_entries;
71 double player1_scores,
double player2_scores,
72 int player_count,
bool handicap_used);
76 void fill(uint32_t online_id,
const XMLNode* result, std::shared_ptr<NetworkPlayerProfile> npp);
77 bool has(uint32_t online_id);
78 double getDelta(uint32_t online_id);
80 const RankingEntry getTemporaryPenalizedScores(uint32_t online_id)
const;
Contains the profile of a player.
Definition: network_player_profile.hpp:42
Definition: ranking.hpp:57
static double scalingValueForTime(double time)
Compute the scaling value of a given time This is linear to race duration, getTimeSpread takes care o...
Definition: ranking.cpp:324
static double computeH2HResult(double player1_time, double player2_time)
Computes the score of a head-to-head minimatch.
Definition: ranking.cpp:335
static double computeDataAccuracy(double player1_rd, double player2_rd, double player1_scores, double player2_scores, int player_count, bool handicap_used)
Computes a relative factor indicating how much informative value the new race result gives us.
Definition: ranking.cpp:388
static double getModeFactor(bool time_trial)
Returns the mode race importance factor, used to make ranking move slower in more random modes.
Definition: ranking.cpp:283
static double getTimeSpread(double time)
Returns the time spread factor.
Definition: ranking.cpp:314
static double getModeSpread(bool time_trial)
Returns the mode spread factor, used so that a similar difference in skill will result in a similar r...
Definition: ranking.cpp:294
void computeNewRankings(std::vector< RaceResultData > &data, bool time_trial)
Compute the new player's rankings used in ranked servers.
Definition: ranking.cpp:56
utility class used to parse XML files
Definition: xml_node.hpp:48
Definition: ranking.hpp:43
Definition: ranking.hpp:51
Definition: ranking.hpp:31