2025-06-18 16:58:52 +02:00
|
|
|
package types
|
|
|
|
|
|
|
|
|
|
// The WeatherAnomaly data type, representing
|
|
|
|
|
// skewed meteorological events
|
|
|
|
|
type WeatherAnomaly struct {
|
|
|
|
|
Date ZephyrDate `json:"date"`
|
2025-06-19 17:22:44 +02:00
|
|
|
Temp string `json:"temperature"`
|
2025-06-18 16:58:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// The StatResult data type, representing weather statistics
|
|
|
|
|
// of past meteorological events
|
|
|
|
|
type StatResult struct {
|
2025-06-19 17:22:44 +02:00
|
|
|
Min string `json:"min"`
|
|
|
|
|
Max string `json:"max"`
|
2025-06-19 12:09:23 +02:00
|
|
|
Count int `json:"count"`
|
2025-06-19 17:22:44 +02:00
|
|
|
Mean string `json:"mean"`
|
|
|
|
|
StdDev string `json:"stdDev"`
|
|
|
|
|
Median string `json:"median"`
|
|
|
|
|
Mode string `json:"mode"`
|
2025-06-19 12:09:23 +02:00
|
|
|
Anomaly *[]WeatherAnomaly `json:"anomaly"`
|
2025-06-18 16:58:52 +02:00
|
|
|
}
|