@hestia-earth/aggregation-engine 0.22.2 → 0.22.3
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.
- package/cjs/formulas.d.ts +10 -0
- package/esm/formulas.d.ts +10 -0
- package/formulas/index.json +18 -0
- package/package.json +1 -1
package/cjs/formulas.d.ts
CHANGED
|
@@ -49,6 +49,16 @@ export interface IFormula {
|
|
|
49
49
|
* The KaTeX source (without the `$$` delimiters).
|
|
50
50
|
*/
|
|
51
51
|
formula: string;
|
|
52
|
+
/**
|
|
53
|
+
* The heading the formula is documented under, e.g. `Completeness`. Names what the formula
|
|
54
|
+
* is for, so several formulas shown together can be told apart.
|
|
55
|
+
*/
|
|
56
|
+
section?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The sentence that introduces the formula in the documentation. Shown above it, so a reader
|
|
59
|
+
* who never opens the guide still knows what it calculates and how it relates to the others.
|
|
60
|
+
*/
|
|
61
|
+
context?: string;
|
|
52
62
|
/**
|
|
53
63
|
* The symbols in the formula, in "Where:" list order.
|
|
54
64
|
*/
|
package/esm/formulas.d.ts
CHANGED
|
@@ -49,6 +49,16 @@ export interface IFormula {
|
|
|
49
49
|
* The KaTeX source (without the `$$` delimiters).
|
|
50
50
|
*/
|
|
51
51
|
formula: string;
|
|
52
|
+
/**
|
|
53
|
+
* The heading the formula is documented under, e.g. `Completeness`. Names what the formula
|
|
54
|
+
* is for, so several formulas shown together can be told apart.
|
|
55
|
+
*/
|
|
56
|
+
section?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The sentence that introduces the formula in the documentation. Shown above it, so a reader
|
|
59
|
+
* who never opens the guide still knows what it calculates and how it relates to the others.
|
|
60
|
+
*/
|
|
61
|
+
context?: string;
|
|
52
62
|
/**
|
|
53
63
|
* The symbols in the formula, in "Where:" list order.
|
|
54
64
|
*/
|
package/formulas/index.json
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"hestia_earth/aggregation/docs/crop.md": [
|
|
3
3
|
{
|
|
4
4
|
"formula": "w_s = O \\times I",
|
|
5
|
+
"section": "Aggregation stages",
|
|
6
|
+
"context": "Each sub-aggregation's weight is the product of its organic share and its irrigation share.",
|
|
5
7
|
"bindings": [
|
|
6
8
|
{
|
|
7
9
|
"symbol": "w_s",
|
|
@@ -22,6 +24,8 @@
|
|
|
22
24
|
},
|
|
23
25
|
{
|
|
24
26
|
"formula": "p_{org} = \\min\\left(1, \\frac{V_{org}}{100}\\right)",
|
|
27
|
+
"section": "Aggregation stages",
|
|
28
|
+
"context": "The organic share comes from the region-standardsLabels-isOrganic lookup (FiBL), averaged over the aggregation period.",
|
|
25
29
|
"bindings": [
|
|
26
30
|
{
|
|
27
31
|
"symbol": "p_{org}",
|
|
@@ -37,6 +41,8 @@
|
|
|
37
41
|
},
|
|
38
42
|
{
|
|
39
43
|
"formula": "p_{irr} = \\frac{A_{irr}}{A_{total}}",
|
|
44
|
+
"section": "Aggregation stages",
|
|
45
|
+
"context": "The irrigation share comes from the region-irrigated lookup (AQUASTAT).",
|
|
40
46
|
"bindings": [
|
|
41
47
|
{
|
|
42
48
|
"symbol": "p_{irr}",
|
|
@@ -57,6 +63,8 @@
|
|
|
57
63
|
},
|
|
58
64
|
{
|
|
59
65
|
"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}",
|
|
66
|
+
"section": "Plantation weighting",
|
|
67
|
+
"context": "The weight for each category is then calculated from the default glossary values for plantation_lifespan and plantation_non_productive_lifespan.",
|
|
60
68
|
"bindings": [
|
|
61
69
|
{
|
|
62
70
|
"symbol": "w_p",
|
|
@@ -82,6 +90,8 @@
|
|
|
82
90
|
},
|
|
83
91
|
{
|
|
84
92
|
"formula": "w_c = \\min\\left(1, \\frac{P_c}{P_{world}}\\right)",
|
|
93
|
+
"section": "World aggregations",
|
|
94
|
+
"context": "World aggregations are created by combining verified country aggregations.",
|
|
85
95
|
"bindings": [
|
|
86
96
|
{
|
|
87
97
|
"symbol": "w_c",
|
|
@@ -104,6 +114,8 @@
|
|
|
104
114
|
"hestia_earth/aggregation/docs/general-process.md": [
|
|
105
115
|
{
|
|
106
116
|
"formula": "\\bar{v} = \\sum_i v_i \\times \\frac{w_i}{W_T}",
|
|
117
|
+
"section": "Number values",
|
|
118
|
+
"context": "The simple mean is the case of the weighted mean where every weight is equal, so both are calculated the same way.",
|
|
107
119
|
"bindings": [
|
|
108
120
|
{
|
|
109
121
|
"symbol": "\\bar{v}",
|
|
@@ -131,6 +143,8 @@
|
|
|
131
143
|
},
|
|
132
144
|
{
|
|
133
145
|
"formula": "\\hat{w}_i = \\frac{w_i}{n_{k(i)} \\times W_T}",
|
|
146
|
+
"section": "Number values",
|
|
147
|
+
"context": "When several Cycles share the same weight, that weight is divided between them, so a group represented by many Cycles does not count more than a group represented by few: a group's share of the result is its intended weight, not its number of uploads.",
|
|
134
148
|
"bindings": [
|
|
135
149
|
{
|
|
136
150
|
"symbol": "\\hat{w}_i",
|
|
@@ -156,6 +170,8 @@
|
|
|
156
170
|
},
|
|
157
171
|
{
|
|
158
172
|
"formula": "\\bar{v} = \\sum_i v_i \\times \\frac{w_i}{W_R + W_Z}",
|
|
173
|
+
"section": "Completeness",
|
|
174
|
+
"context": "This zero-filling is what allows a term reported by only part of the population to be averaged over the whole population rather than only where it occurs.",
|
|
159
175
|
"bindings": [
|
|
160
176
|
{
|
|
161
177
|
"symbol": "\\bar{v}",
|
|
@@ -188,6 +204,8 @@
|
|
|
188
204
|
},
|
|
189
205
|
{
|
|
190
206
|
"formula": "EVS = \\overline{evs} \\times \\frac{W_P}{W_T}",
|
|
207
|
+
"section": "Primary Product",
|
|
208
|
+
"context": "Because economicValueShare is a share of the Cycle's total revenue rather than a physical quantity, it also has to account for how prevalent the product is across the population.",
|
|
191
209
|
"bindings": [
|
|
192
210
|
{
|
|
193
211
|
"symbol": "EVS",
|