## Classes
objectThe data structure representing the sorting hat data
objectThe running averages, including the current sum and count
DataService](#DataService)
**Returns**: tSortingHatData
## SortingHat
**Kind**: global class
### new SortingHat()
The main vue application, it is composed by the other components, no real
logic otherwise
## tSortingHatData : object
The data structure representing the sorting hat data
**Kind**: global typedef
| Param | Type | Description |
| --- | --- | --- |
| state | number | the current state: 0 for waiting, 1 for polling, 2 for cool down. |
| [winner] | string | the winner after polling, might be null if no winner is detected |
| runningAverages | Object.<string, tRunningAverages> | the running averages for the different categories, used to render the waves |
## tRunningAverages : object
The running averages, including the current sum and count
**Kind**: global typedef
| Param | Type | Description |
| --- | --- | --- |
| sum | number | the current total |
| count | number | the number of samples |
| average | number | the average (sum / count) |