aggregationslib 0.1.5.dev1__tar.gz → 0.1.5.dev4__tar.gz

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 (25) hide show
  1. {aggregationslib-0.1.5.dev1/aggregationslib.egg-info → aggregationslib-0.1.5.dev4}/PKG-INFO +23 -22
  2. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/README.md +18 -20
  3. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/README.rst +19 -19
  4. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4/aggregationslib.egg-info}/PKG-INFO +23 -22
  5. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/pyproject.toml +1 -1
  6. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/.github/workflows/python-publish.yml +0 -0
  7. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/.gitignore +0 -0
  8. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/LICENSE +0 -0
  9. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/__init__.py +0 -0
  10. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/aggregation.py +0 -0
  11. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/aggregations.py +0 -0
  12. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/conjuctive/__init__.py +0 -0
  13. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/conjuctive/purepython.py +0 -0
  14. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/decimalaggregations.py +0 -0
  15. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/disjunctive/__init__.py +0 -0
  16. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/example.py +0 -0
  17. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib/purepython.py +0 -0
  18. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib.egg-info/SOURCES.txt +0 -0
  19. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib.egg-info/dependency_links.txt +0 -0
  20. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib.egg-info/requires.txt +0 -0
  21. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/aggregationslib.egg-info/top_level.txt +0 -0
  22. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/setup.cfg +0 -0
  23. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/tests/__init__.py +0 -0
  24. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/tests/test_aggregations.py +0 -0
  25. {aggregationslib-0.1.5.dev1 → aggregationslib-0.1.5.dev4}/tests/test_decimal_exponential_mean.py +0 -0
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: aggregationslib
3
- Version: 0.1.5.dev1
3
+ Version: 0.1.5.dev4
4
4
  Summary: Python implementation of Arithmetic, quasi arithmetic and other aggregating functions
5
5
  Author: wgalka
6
6
  Project-URL: Homepage, https://github.com/wgalka/Means
7
7
  Project-URL: Download, https://github.com/wgalka/Means/releases/latest
8
- Classifier: Programming Language :: Python :: 3.13
8
+ Classifier: Programming Language :: Python :: 3.12
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.12
11
11
  Description-Content-Type: text/x-rst
@@ -14,6 +14,7 @@ Requires-Dist: numpy>=2.2.2
14
14
  Requires-Dist: pynverse
15
15
  Provides-Extra: test
16
16
  Requires-Dist: pytest>=8.3.4; extra == "test"
17
+ Dynamic: license-file
17
18
 
18
19
  Means
19
20
  =====
@@ -81,29 +82,29 @@ fulfills two boundary conditions, namely :math:`A(0,\dots,0) = 0`,
81
82
 
82
83
  The floowoing aggregation functions are implemented in this library:
83
84
 
84
- **Arithmetic mean**
85
+ :math:`\mathbf{A_{ar}}` **- Arithmetic mean**
85
86
 
86
87
  .. math:: A_{ar}(x_1,...,x_n)=\frac{1}{n}\sum \limits_{k=1}^{n} x_k
87
88
 
88
- **Quadratic mean**
89
+ :math:`\mathbf{A_{qd}}` **- Quadratic mean**
89
90
 
90
91
  .. math::
91
92
 
92
93
  A_{qd}(x_1,...,x_n)=\sqrt{\frac{1}{n}\sum
93
94
  \limits_{k=1}^{n} x_k^2}
94
95
 
95
- **Product aggregation**
96
+ :math:`\mathbf{A_{pr}}` **- Product aggregation**
96
97
 
97
- .. math:: A_{\text{pr}}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
98
+ .. math:: A_{pr}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
98
99
 
99
- **Geometric mean**
100
+ :math:`\mathbf{A_{gm}}` **- Geometric mean**
100
101
 
101
102
  .. math::
102
103
 
103
104
  A_{gm}(x_1,...,x_n)=\sqrt[n]{\prod
104
105
  \limits_{k=1}^{n} x_k}
105
106
 
106
- **Harmonic mean**
107
+ :math:`\mathbf{A_{hm}}` **- Harmonic mean**
107
108
 
108
109
  .. math::
109
110
 
@@ -114,7 +115,7 @@ The floowoing aggregation functions are implemented in this library:
114
115
  \frac{n}{\sum\limits_{k=1}^{n} \frac{1}{x_k}}, & \text{otherwise}
115
116
  \end{cases}
116
117
 
117
- **Power mean**
118
+ :math:`\mathbf{A_{pw}^{(r)}}` **- Power mean**
118
119
 
119
120
  .. math::
120
121
 
@@ -132,7 +133,7 @@ where r=-1; - Geometric Mean obtained as the limit
132
133
 
133
134
  --------------
134
135
 
135
- **Exponential mean**
136
+ :math:`\mathbf{A_{ex}^{(r)}}` **- Exponential mean**
136
137
 
137
138
  .. math::
138
139
 
@@ -140,18 +141,18 @@ where r=-1; - Geometric Mean obtained as the limit
140
141
  \Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
141
142
  } r \in \mathbb{R}$, $r \neq 0
142
143
 
143
- **Lehmer mean**
144
+ :math:`\mathbf{A_{lm}}` **- Lehmer mean**
144
145
 
145
- .. math:: A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}
146
+ .. math:: A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}
146
147
 
147
- **Arithmetic minimum mean**
148
+ :math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
148
149
 
149
150
  .. math::
150
151
 
151
152
  A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
152
153
  (1-p) \min \limits_{1 \leq k \leq n}x_k,
153
154
 
154
- **Arithmetic maximum mean**
155
+ :math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
155
156
 
156
157
  .. math::
157
158
 
@@ -165,7 +166,7 @@ In the case of n = 2 (when only two values are aggregated) the
165
166
  calculation of the median and the Olympic aggregation are reduced to the
166
167
  case of calculating the arithmetic mean of the given values.
167
168
 
168
- **Median - ordered weighted aggregation**
169
+ :math:`\mathbf{A_{md}}` **- Median - ordered weighted aggregation**
169
170
 
170
171
  .. math::
171
172
 
@@ -175,15 +176,15 @@ case of calculating the arithmetic mean of the given values.
175
176
  \frac{y_{n/2}+y_{(n/2)+1}}{2},&\text{if $n$ is even}
176
177
  \end{cases},
177
178
 
178
- **Olimpic aggregation**
179
+ :math:`\mathbf{A_{ol}}` **- Olimpic aggregation**
179
180
 
180
181
  .. math:: A_{ol}(x_1,\dots,x_n) = \frac{1}{n-2} \sum \limits_{k=2}^{n-1} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
181
182
 
182
- :math:`\mathbf{A_{oln}^{p}}` **- Olimpic aggregation**
183
+ :math:`\mathbf{A_{oln}^{(p)}}` **- Olimpic aggregation**
183
184
 
184
185
  We can specify how many greatest and smallest records remove
185
186
 
186
- .. math:: A_{oln}^{p}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
187
+ .. math:: A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
187
188
 
188
189
  --------------
189
190
 
@@ -196,11 +197,11 @@ https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_
196
197
 
197
198
  A_{ln}\left(x_1, x_2, \ldots, x_n\right)=(n-1) ! \sum_{i=1}^n \frac{x_i}{\prod_{\substack{j=1 \\ j \neq i}}^n \log \left(x_i / x_j\right)}
198
199
 
199
- :math:`A^p_{A_1,A_2}` - convex combinations of aggregation functions
200
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
200
+ :math:`\mathbf{A^{(p)}_{A_1,A_2}}` - Convex combinations of aggregation functions
201
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201
202
 
202
203
  We can construct covex combination of aggregation functions as
203
- :math:`A^p_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
204
+ :math:`A^{(p)}_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
204
205
  aggregation functions and :math:`p \in [0,1]`.
205
206
 
206
207
  References
@@ -54,27 +54,25 @@ fulfills two boundary conditions, namely $A(0,\dots,0) = 0$, $A(1,\dots,1) = 1$.
54
54
 
55
55
  The floowoing aggregation functions are implemented in this library:
56
56
 
57
- **Arithmetic mean**
57
+ $\mathbf{A_{ar}}$ **- Arithmetic mean**
58
58
 
59
59
  $$A_{ar}(x_1,...,x_n)=\frac{1}{n}\sum \limits_{k=1}^{n} x_k$$
60
60
 
61
- **Quadratic mean**
61
+ $\mathbf{A_{qd}}$ **- Quadratic mean**
62
62
 
63
63
  $$A_{qd}(x_1,...,x_n)=\sqrt{\frac{1}{n}\sum
64
64
  \limits_{k=1}^{n} x_k^2}$$
65
65
 
66
- **Product aggregation**
66
+ $\mathbf{A_{pr}}$ **- Product aggregation**
67
67
 
68
- $$A_{\text{pr}}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k$$
68
+ $$A_{pr}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k$$
69
69
 
70
- **Geometric mean**
70
+ $\mathbf{A_{gm}}$ **- Geometric mean**
71
71
 
72
72
  $$A_{gm}(x_1,...,x_n)=\sqrt[n]{\prod
73
73
  \limits_{k=1}^{n} x_k}$$
74
74
 
75
- **Harmonic mean**
76
-
77
-
75
+ $\mathbf{A_{hm}}$ **- Harmonic mean**
78
76
 
79
77
  $$
80
78
  A_{hm}(x_1,...,x_n) =
@@ -85,7 +83,7 @@ A_{hm}(x_1,...,x_n) =
85
83
  $$
86
84
 
87
85
 
88
- **Power mean**
86
+ $\mathbf{A_{pw}^{(r)}}$ **- Power mean**
89
87
 
90
88
  $$
91
89
  A_{pw}^{(r)}(x_1,...,x_n) =
@@ -105,22 +103,22 @@ special cases of power means $A_{\text{pw}}^r$ [1] are:
105
103
 
106
104
  ----
107
105
 
108
- **Exponential mean**
106
+ $\mathbf{A_{ex}^{(r)}}$ **- Exponential mean**
109
107
 
110
108
  $$A_{ex}^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
111
109
  \Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
112
110
  } r \in \mathbb{R}$, $r \neq 0$$
113
111
 
114
- **Lehmer mean**
112
+ $\mathbf{A_{lm}}$ **- Lehmer mean**
115
113
 
116
- $$ A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}} $$
114
+ $$A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}} $$
117
115
 
118
- **Arithmetic minimum mean**
116
+ $\mathbf{A_{amn}^{(p)}}$ **- Arithmetic minimum mean**
119
117
 
120
118
  $$A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
121
119
  (1-p) \min \limits_{1 \leq k \leq n}x_k,$$
122
120
 
123
- **Arithmetic maximum mean**
121
+ $\mathbf{A_{amx}^{(p)}}$ **- Arithmetic maximum mean**
124
122
 
125
123
  $$A_{amx}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
126
124
  (1-p) \max \limits_{1\leq k \leq n}x_k,$$
@@ -132,7 +130,7 @@ In the case of n = 2 (when only two values are aggregated) the
132
130
  calculation of the median and the Olympic aggregation are reduced to the case of calculating the
133
131
  arithmetic mean of the given values.
134
132
 
135
- **Median - ordered weighted aggregation**
133
+ $\mathbf{A_{md}}$ **- Median - ordered weighted aggregation**
136
134
 
137
135
  $$A_{md}(x_1,\dots,x_n) =
138
136
  \begin{cases}
@@ -140,15 +138,15 @@ y_{(n+1)/2},&\text{if $n$ is odd}\\
140
138
  \frac{y_{n/2}+y_{(n/2)+1}}{2},&\text{if $n$ is even}
141
139
  \end{cases},$$
142
140
 
143
- **Olimpic aggregation**
141
+ $\mathbf{A_{ol}}$ **- Olimpic aggregation**
144
142
 
145
143
  $$ A_{ol}(x_1,\dots,x_n) = \frac{1}{n-2} \sum \limits_{k=2}^{n-1} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.$$
146
144
 
147
- $\mathbf{A_{oln}^{p}}$ **- Olimpic aggregation**
145
+ $\mathbf{A_{oln}^{(p)}}$ **- Olimpic aggregation**
148
146
 
149
147
  We can specify how many greatest and smallest records remove
150
148
 
151
- $$ A_{oln}^{p}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.$$
149
+ $$ A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.$$
152
150
 
153
151
  --------------------
154
152
 
@@ -160,9 +158,9 @@ $$
160
158
  A_{ln}\left(x_1, x_2, \ldots, x_n\right)=(n-1) ! \sum_{i=1}^n \frac{x_i}{\prod_{\substack{j=1 \\ j \neq i}}^n \log \left(x_i / x_j\right)}
161
159
  $$
162
160
 
163
- ### $A^p_{A_1,A_2}$ - convex combinations of aggregation functions
161
+ ### $\mathbf{A^{(p)}_{A_1,A_2}}$ - Convex combinations of aggregation functions
164
162
 
165
- We can construct covex combination of aggregation functions as $A^p_{A_1,A_2}=pA_1+(1-p)A_2$, where $A_1, A_2$ are aggregation functions and $p \in [0,1]$.
163
+ We can construct covex combination of aggregation functions as $A^{(p)}_{A_1,A_2}=pA_1+(1-p)A_2$, where $A_1, A_2$ are aggregation functions and $p \in [0,1]$.
166
164
 
167
165
 
168
166
 
@@ -64,29 +64,29 @@ fulfills two boundary conditions, namely :math:`A(0,\dots,0) = 0`,
64
64
 
65
65
  The floowoing aggregation functions are implemented in this library:
66
66
 
67
- **Arithmetic mean**
67
+ :math:`\mathbf{A_{ar}}` **- Arithmetic mean**
68
68
 
69
69
  .. math:: A_{ar}(x_1,...,x_n)=\frac{1}{n}\sum \limits_{k=1}^{n} x_k
70
70
 
71
- **Quadratic mean**
71
+ :math:`\mathbf{A_{qd}}` **- Quadratic mean**
72
72
 
73
73
  .. math::
74
74
 
75
75
  A_{qd}(x_1,...,x_n)=\sqrt{\frac{1}{n}\sum
76
76
  \limits_{k=1}^{n} x_k^2}
77
77
 
78
- **Product aggregation**
78
+ :math:`\mathbf{A_{pr}}` **- Product aggregation**
79
79
 
80
- .. math:: A_{\text{pr}}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
80
+ .. math:: A_{pr}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
81
81
 
82
- **Geometric mean**
82
+ :math:`\mathbf{A_{gm}}` **- Geometric mean**
83
83
 
84
84
  .. math::
85
85
 
86
86
  A_{gm}(x_1,...,x_n)=\sqrt[n]{\prod
87
87
  \limits_{k=1}^{n} x_k}
88
88
 
89
- **Harmonic mean**
89
+ :math:`\mathbf{A_{hm}}` **- Harmonic mean**
90
90
 
91
91
  .. math::
92
92
 
@@ -97,7 +97,7 @@ The floowoing aggregation functions are implemented in this library:
97
97
  \frac{n}{\sum\limits_{k=1}^{n} \frac{1}{x_k}}, & \text{otherwise}
98
98
  \end{cases}
99
99
 
100
- **Power mean**
100
+ :math:`\mathbf{A_{pw}^{(r)}}` **- Power mean**
101
101
 
102
102
  .. math::
103
103
 
@@ -115,7 +115,7 @@ where r=-1; - Geometric Mean obtained as the limit
115
115
 
116
116
  --------------
117
117
 
118
- **Exponential mean**
118
+ :math:`\mathbf{A_{ex}^{(r)}}` **- Exponential mean**
119
119
 
120
120
  .. math::
121
121
 
@@ -123,18 +123,18 @@ where r=-1; - Geometric Mean obtained as the limit
123
123
  \Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
124
124
  } r \in \mathbb{R}$, $r \neq 0
125
125
 
126
- **Lehmer mean**
126
+ :math:`\mathbf{A_{lm}}` **- Lehmer mean**
127
127
 
128
- .. math:: A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}
128
+ .. math:: A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}
129
129
 
130
- **Arithmetic minimum mean**
130
+ :math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
131
131
 
132
132
  .. math::
133
133
 
134
134
  A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
135
135
  (1-p) \min \limits_{1 \leq k \leq n}x_k,
136
136
 
137
- **Arithmetic maximum mean**
137
+ :math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
138
138
 
139
139
  .. math::
140
140
 
@@ -148,7 +148,7 @@ In the case of n = 2 (when only two values are aggregated) the
148
148
  calculation of the median and the Olympic aggregation are reduced to the
149
149
  case of calculating the arithmetic mean of the given values.
150
150
 
151
- **Median - ordered weighted aggregation**
151
+ :math:`\mathbf{A_{md}}` **- Median - ordered weighted aggregation**
152
152
 
153
153
  .. math::
154
154
 
@@ -158,15 +158,15 @@ case of calculating the arithmetic mean of the given values.
158
158
  \frac{y_{n/2}+y_{(n/2)+1}}{2},&\text{if $n$ is even}
159
159
  \end{cases},
160
160
 
161
- **Olimpic aggregation**
161
+ :math:`\mathbf{A_{ol}}` **- Olimpic aggregation**
162
162
 
163
163
  .. math:: A_{ol}(x_1,\dots,x_n) = \frac{1}{n-2} \sum \limits_{k=2}^{n-1} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
164
164
 
165
- :math:`\mathbf{A_{oln}^{p}}` **- Olimpic aggregation**
165
+ :math:`\mathbf{A_{oln}^{(p)}}` **- Olimpic aggregation**
166
166
 
167
167
  We can specify how many greatest and smallest records remove
168
168
 
169
- .. math:: A_{oln}^{p}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
169
+ .. math:: A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
170
170
 
171
171
  --------------
172
172
 
@@ -179,11 +179,11 @@ https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_
179
179
 
180
180
  A_{ln}\left(x_1, x_2, \ldots, x_n\right)=(n-1) ! \sum_{i=1}^n \frac{x_i}{\prod_{\substack{j=1 \\ j \neq i}}^n \log \left(x_i / x_j\right)}
181
181
 
182
- :math:`A^p_{A_1,A_2}` - convex combinations of aggregation functions
183
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182
+ :math:`\mathbf{A^{(p)}_{A_1,A_2}}` - Convex combinations of aggregation functions
183
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
184
184
 
185
185
  We can construct covex combination of aggregation functions as
186
- :math:`A^p_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
186
+ :math:`A^{(p)}_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
187
187
  aggregation functions and :math:`p \in [0,1]`.
188
188
 
189
189
  References
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: aggregationslib
3
- Version: 0.1.5.dev1
3
+ Version: 0.1.5.dev4
4
4
  Summary: Python implementation of Arithmetic, quasi arithmetic and other aggregating functions
5
5
  Author: wgalka
6
6
  Project-URL: Homepage, https://github.com/wgalka/Means
7
7
  Project-URL: Download, https://github.com/wgalka/Means/releases/latest
8
- Classifier: Programming Language :: Python :: 3.13
8
+ Classifier: Programming Language :: Python :: 3.12
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.12
11
11
  Description-Content-Type: text/x-rst
@@ -14,6 +14,7 @@ Requires-Dist: numpy>=2.2.2
14
14
  Requires-Dist: pynverse
15
15
  Provides-Extra: test
16
16
  Requires-Dist: pytest>=8.3.4; extra == "test"
17
+ Dynamic: license-file
17
18
 
18
19
  Means
19
20
  =====
@@ -81,29 +82,29 @@ fulfills two boundary conditions, namely :math:`A(0,\dots,0) = 0`,
81
82
 
82
83
  The floowoing aggregation functions are implemented in this library:
83
84
 
84
- **Arithmetic mean**
85
+ :math:`\mathbf{A_{ar}}` **- Arithmetic mean**
85
86
 
86
87
  .. math:: A_{ar}(x_1,...,x_n)=\frac{1}{n}\sum \limits_{k=1}^{n} x_k
87
88
 
88
- **Quadratic mean**
89
+ :math:`\mathbf{A_{qd}}` **- Quadratic mean**
89
90
 
90
91
  .. math::
91
92
 
92
93
  A_{qd}(x_1,...,x_n)=\sqrt{\frac{1}{n}\sum
93
94
  \limits_{k=1}^{n} x_k^2}
94
95
 
95
- **Product aggregation**
96
+ :math:`\mathbf{A_{pr}}` **- Product aggregation**
96
97
 
97
- .. math:: A_{\text{pr}}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
98
+ .. math:: A_{pr}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
98
99
 
99
- **Geometric mean**
100
+ :math:`\mathbf{A_{gm}}` **- Geometric mean**
100
101
 
101
102
  .. math::
102
103
 
103
104
  A_{gm}(x_1,...,x_n)=\sqrt[n]{\prod
104
105
  \limits_{k=1}^{n} x_k}
105
106
 
106
- **Harmonic mean**
107
+ :math:`\mathbf{A_{hm}}` **- Harmonic mean**
107
108
 
108
109
  .. math::
109
110
 
@@ -114,7 +115,7 @@ The floowoing aggregation functions are implemented in this library:
114
115
  \frac{n}{\sum\limits_{k=1}^{n} \frac{1}{x_k}}, & \text{otherwise}
115
116
  \end{cases}
116
117
 
117
- **Power mean**
118
+ :math:`\mathbf{A_{pw}^{(r)}}` **- Power mean**
118
119
 
119
120
  .. math::
120
121
 
@@ -132,7 +133,7 @@ where r=-1; - Geometric Mean obtained as the limit
132
133
 
133
134
  --------------
134
135
 
135
- **Exponential mean**
136
+ :math:`\mathbf{A_{ex}^{(r)}}` **- Exponential mean**
136
137
 
137
138
  .. math::
138
139
 
@@ -140,18 +141,18 @@ where r=-1; - Geometric Mean obtained as the limit
140
141
  \Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
141
142
  } r \in \mathbb{R}$, $r \neq 0
142
143
 
143
- **Lehmer mean**
144
+ :math:`\mathbf{A_{lm}}` **- Lehmer mean**
144
145
 
145
- .. math:: A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}
146
+ .. math:: A_{lm}(x_1,...,x_n)= \frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}
146
147
 
147
- **Arithmetic minimum mean**
148
+ :math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
148
149
 
149
150
  .. math::
150
151
 
151
152
  A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
152
153
  (1-p) \min \limits_{1 \leq k \leq n}x_k,
153
154
 
154
- **Arithmetic maximum mean**
155
+ :math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
155
156
 
156
157
  .. math::
157
158
 
@@ -165,7 +166,7 @@ In the case of n = 2 (when only two values are aggregated) the
165
166
  calculation of the median and the Olympic aggregation are reduced to the
166
167
  case of calculating the arithmetic mean of the given values.
167
168
 
168
- **Median - ordered weighted aggregation**
169
+ :math:`\mathbf{A_{md}}` **- Median - ordered weighted aggregation**
169
170
 
170
171
  .. math::
171
172
 
@@ -175,15 +176,15 @@ case of calculating the arithmetic mean of the given values.
175
176
  \frac{y_{n/2}+y_{(n/2)+1}}{2},&\text{if $n$ is even}
176
177
  \end{cases},
177
178
 
178
- **Olimpic aggregation**
179
+ :math:`\mathbf{A_{ol}}` **- Olimpic aggregation**
179
180
 
180
181
  .. math:: A_{ol}(x_1,\dots,x_n) = \frac{1}{n-2} \sum \limits_{k=2}^{n-1} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
181
182
 
182
- :math:`\mathbf{A_{oln}^{p}}` **- Olimpic aggregation**
183
+ :math:`\mathbf{A_{oln}^{(p)}}` **- Olimpic aggregation**
183
184
 
184
185
  We can specify how many greatest and smallest records remove
185
186
 
186
- .. math:: A_{oln}^{p}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
187
+ .. math:: A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p}^{n-p} y_k, \quad \text{where } \{y_1, \dots, y_n\} = \{x_1, \dots, x_n\},\ y_1 \leq y_2 \leq \dots \leq y_n.
187
188
 
188
189
  --------------
189
190
 
@@ -196,11 +197,11 @@ https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_
196
197
 
197
198
  A_{ln}\left(x_1, x_2, \ldots, x_n\right)=(n-1) ! \sum_{i=1}^n \frac{x_i}{\prod_{\substack{j=1 \\ j \neq i}}^n \log \left(x_i / x_j\right)}
198
199
 
199
- :math:`A^p_{A_1,A_2}` - convex combinations of aggregation functions
200
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
200
+ :math:`\mathbf{A^{(p)}_{A_1,A_2}}` - Convex combinations of aggregation functions
201
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201
202
 
202
203
  We can construct covex combination of aggregation functions as
203
- :math:`A^p_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
204
+ :math:`A^{(p)}_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
204
205
  aggregation functions and :math:`p \in [0,1]`.
205
206
 
206
207
  References
@@ -14,7 +14,7 @@ authors = [
14
14
  { name = "wgalka" }
15
15
  ]
16
16
  classifiers = [
17
- "Programming Language :: Python :: 3.13",
17
+ "Programming Language :: Python :: 3.12",
18
18
  "Operating System :: OS Independent"
19
19
  ]
20
20
  dependencies = [