-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
energy_efficiency_carbon_percentiles.py
133 lines (130 loc) · 3.61 KB
/
energy_efficiency_carbon_percentiles.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# This array was last generated with carbon-rating.py on 2024-03-31
def get_generated_date():
"""
Get the date when the data was generated.
Returns:
str: A string that represents the date when the data was generated.
The date is in the format 'YYYY-MM-DD'.
"""
return '2024-03-31'
def get_percentiles():
"""
Get the precomputed percentiles of CO2 data.
Returns:
list: A list of precomputed percentiles of the CO2 data.
The list contains 100 elements,
each representing the percentile from 1 to 100.
The percentiles are sorted in ascending order.
The percentile values are floats.
"""
return [
0.08354936412472742,
0.13657804459389297,
0.18515692842479328,
0.22692933166886212,
0.2525221250193426,
0.2874776061070385,
0.31191066180402416,
0.344436006239173,
0.36667539186773357,
0.39758132844476496,
# 10 percentile
0.42584487272235566,
0.4464283894000808,
0.46531171471399724,
0.48831765141088984,
0.510851378373918,
0.5317421617470216,
0.5543698387214449,
0.5791470562671542,
0.6028803097745404,
0.6186698679652763,
# 20 percentile
0.631780596878333,
0.6463543994801352,
0.6655098084641156,
0.6942654328065225,
0.7170844340597977,
0.7372893775268226,
0.7558947352377232,
0.7787478584792232,
0.8010871503955684,
0.8200965462073219,
# 30 percentile
0.8394079517579637,
0.8574583870709639,
0.8799363854723051,
0.8971731259099208,
0.9300173361049964,
0.9541632124678697,
0.9763189208532217,
0.9938500749687432,
1.0212998279130319,
1.0504173141319773,
# 40 percentile
1.0768987260450609,
1.0988630619226023,
1.1215843754201895,
1.1494796192552659,
1.1679330798609882,
1.196162212776602,
1.2189920173166087,
1.2507048967148173,
1.2774594292205759,
1.307289932363783,
# 50 percentile
1.3392636821991764,
1.3570009668838463,
1.38218706954075,
1.411758462603763,
1.4452612874577753,
1.4804685478239554,
1.5103988125680712,
1.5413658552356755,
1.5866408142562025,
1.6249815582929876,
# 60 percentile
1.657838934993767,
1.7014340311565435,
1.7496255158773157,
1.7901508147093466,
1.8204601590682286,
1.8672358344797044,
1.9200499443119627,
1.9582236473505616,
2.024268769118678,
2.087484008510713,
# 70 percentile
2.159640824487759,
2.228946874949638,
2.3116927446237296,
2.393050343723898,
2.4580033448385072,
2.540090069335118,
2.6137265979916324,
2.6977107944072927,
2.7708533379551255,
2.87857855274051,
# 80 percentile
2.9831052229901087,
3.0822705451690124,
3.205326033772178,
3.3414577193540285,
3.4742567115516865,
3.662649320810405,
3.824050304002779,
4.022925911478537,
4.2230293800118375,
4.470116463111714,
# 90 percentile
4.695625259033334,
4.9861721319525785,
5.365176268398273,
5.774669570875075,
6.345150944315008,
7.2068164399044585,
8.434910226292136,
10.216039042627969,
13.186847352152784,
40.041936754347404
]