Namespace util.advStats
Advanced stats (PER, WS, etc) that require some nontrivial calculations and thus are calculated and cached once each day.
Defined in: <js/util/advStats.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
util.advStats.calculateAll(cb)
Calcualte the advanced stats for each active player and write them to the database.
|
<static> |
util.advStats.calculatePER(cb)
Calcualte the current season's Player Efficiency Rating (PER) for each active player and write it to the database.
|
Method Detail
<static>
util.advStats.calculateAll(cb)
Calcualte the advanced stats for each active player and write them to the database.
Currently this is just PER.
- Parameters:
- {function()} cb
- Callback function.
<static>
util.advStats.calculatePER(cb)
Calcualte the current season's Player Efficiency Rating (PER) for each active player and write it to the database.
This is based on http://www.basketball-reference.com/about/per.html
- Parameters:
- {function()} cb
- Callback function.