Added stat methods and anomaly detection algorithm
This commit is contained in:
@@ -10,12 +10,12 @@ type WeatherAnomaly struct {
|
||||
// The StatResult data type, representing weather statistics
|
||||
// of past meteorological events
|
||||
type StatResult struct {
|
||||
Min float64 `json:"min"`
|
||||
Max float64 `json:"max"`
|
||||
Count int `json:"count"`
|
||||
Mean float64 `json:"mean"`
|
||||
StdDev float64 `json:"stdDev"`
|
||||
Median float64 `json:"median"`
|
||||
Mode float64 `json:"mode"`
|
||||
Anomaly WeatherAnomaly `json:"anomaly"`
|
||||
Min float64 `json:"min"`
|
||||
Max float64 `json:"max"`
|
||||
Count int `json:"count"`
|
||||
Mean float64 `json:"mean"`
|
||||
StdDev float64 `json:"stdDev"`
|
||||
Median float64 `json:"median"`
|
||||
Mode float64 `json:"mode"`
|
||||
Anomaly *[]WeatherAnomaly `json:"anomaly"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user