package risk // Thresholds holds configurable temperature thresholds for risk analysis. type Thresholds struct { HotDayC float64 // daytime temp considered "hot" (default 30) VeryHotDayC float64 // daytime temp considered "very hot" (default 35) ExtremeDayC float64 // extreme heat (default 40) PoorNightCoolingC float64 // night temp above which cooling is poor (default 20) ComfortMaxC float64 // max indoor comfort temp (default 26) } // DefaultThresholds returns the default temperature thresholds. func DefaultThresholds() Thresholds { return Thresholds{ HotDayC: 30, VeryHotDayC: 35, ExtremeDayC: 40, PoorNightCoolingC: 20, ComfortMaxC: 26, } }