@hestia-earth/aggregation-engine 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/formulas/index.json +14 -29
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "hestia_earth/aggregation/docs/crop.md": [
3
3
  {
4
- "formula": "w = O \\times I",
4
+ "formula": "w_s = O \\times I",
5
5
  "bindings": [
6
6
  {
7
- "symbol": "w",
7
+ "symbol": "w_s",
8
8
  "description": "the weight of the sub-aggregation",
9
9
  "key": "weight"
10
10
  },
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  {
24
- "formula": "p_{org} = \\min\\left(1, \\frac{L_{org}}{100}\\right)",
24
+ "formula": "p_{org} = \\min\\left(1, \\frac{V_{org}}{100}\\right)",
25
25
  "bindings": [
26
26
  {
27
27
  "symbol": "p_{org}",
@@ -29,14 +29,9 @@
29
29
  "key": "organic_weight"
30
30
  },
31
31
  {
32
- "symbol": "L_{org}",
32
+ "symbol": "V_{org}",
33
33
  "description": "the lookup value as a percentage, averaged over the period",
34
34
  "key": "organic_weight_lookup_value"
35
- },
36
- {
37
- "symbol": "L",
38
- "description": "the plantation lifespan in days",
39
- "key": "plantation_lifespan"
40
35
  }
41
36
  ]
42
37
  },
@@ -61,12 +56,12 @@
61
56
  ]
62
57
  },
63
58
  {
64
- "formula": "w = \\begin{cases} \\frac{L - N}{L} & \\text{productive phase} \\\\ \\frac{365}{L} & \\text{preparation phase} \\\\ \\frac{N - 365}{L} & \\text{non-productive phase} \\end{cases}",
59
+ "formula": "w_p = \\begin{cases} \\frac{L - N}{L} & \\text{productive phase} \\\\ \\frac{365}{L} & \\text{preparation phase} \\\\ \\frac{N - 365}{L} & \\text{non-productive phase} \\end{cases}",
65
60
  "bindings": [
66
61
  {
67
- "symbol": "w",
68
- "description": "the weight of a Cycle, by the phase it describes",
69
- "key": "weight"
62
+ "symbol": "w_p",
63
+ "description": "the weight of a Cycle, by the phase it describes, which is not stored",
64
+ "display": true
70
65
  },
71
66
  {
72
67
  "symbol": "L",
@@ -102,18 +97,13 @@
102
97
  "symbol": "P_{world}",
103
98
  "description": "the world production quantity of the product over the same period",
104
99
  "key": "world_production"
105
- },
106
- {
107
- "symbol": "w",
108
- "description": "the weight of the sub-aggregation",
109
- "key": "weight"
110
100
  }
111
101
  ]
112
102
  }
113
103
  ],
114
104
  "hestia_earth/aggregation/docs/general-process.md": [
115
105
  {
116
- "formula": "\\bar{v} = \\sum_i v_i \\times \\frac{w_i}{W}",
106
+ "formula": "\\bar{v} = \\sum_i v_i \\times \\frac{w_i}{W_T}",
117
107
  "bindings": [
118
108
  {
119
109
  "symbol": "\\bar{v}",
@@ -133,14 +123,14 @@
133
123
  "column": "weight"
134
124
  },
135
125
  {
136
- "symbol": "W",
126
+ "symbol": "W_T",
137
127
  "description": "the total of every $w_i$",
138
128
  "key": "total_weight"
139
129
  }
140
130
  ]
141
131
  },
142
132
  {
143
- "formula": "\\hat{w}_i = \\frac{w_i}{n_{k(i)} \\times W}",
133
+ "formula": "\\hat{w}_i = \\frac{w_i}{n_{k(i)} \\times W_T}",
144
134
  "bindings": [
145
135
  {
146
136
  "symbol": "\\hat{w}_i",
@@ -158,7 +148,7 @@
158
148
  "display": true
159
149
  },
160
150
  {
161
- "symbol": "W",
151
+ "symbol": "W_T",
162
152
  "description": "the total of every $w_i / n_{k(i)}$",
163
153
  "display": true
164
154
  }
@@ -193,16 +183,11 @@
193
183
  "symbol": "W_Z",
194
184
  "description": "the total weight of those that are complete for the area but report no value",
195
185
  "key": "zero_filled_weight"
196
- },
197
- {
198
- "symbol": "W",
199
- "description": "the total of every $w_i$",
200
- "key": "total_weight"
201
186
  }
202
187
  ]
203
188
  },
204
189
  {
205
- "formula": "EVS = \\overline{evs} \\times \\frac{W_P}{W}",
190
+ "formula": "EVS = \\overline{evs} \\times \\frac{W_P}{W_T}",
206
191
  "bindings": [
207
192
  {
208
193
  "symbol": "EVS",
@@ -220,7 +205,7 @@
220
205
  "key": "product_weight"
221
206
  },
222
207
  {
223
- "symbol": "W",
208
+ "symbol": "W_T",
224
209
  "description": "the total weight of all sub-aggregations",
225
210
  "key": "total_weight"
226
211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/aggregation-engine",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "HESTIA Aggregation Engine",
5
5
  "main": "cjs/index.js",
6
6
  "directories": {