aggregationslib 0.1.5.dev1__py3-none-any.whl → 0.1.5.dev2__py3-none-any.whl
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.
- {aggregationslib-0.1.5.dev1.dist-info → aggregationslib-0.1.5.dev2.dist-info}/METADATA +21 -21
- {aggregationslib-0.1.5.dev1.dist-info → aggregationslib-0.1.5.dev2.dist-info}/RECORD +5 -5
- {aggregationslib-0.1.5.dev1.dist-info → aggregationslib-0.1.5.dev2.dist-info}/LICENSE +0 -0
- {aggregationslib-0.1.5.dev1.dist-info → aggregationslib-0.1.5.dev2.dist-info}/WHEEL +0 -0
- {aggregationslib-0.1.5.dev1.dist-info → aggregationslib-0.1.5.dev2.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: aggregationslib
|
|
3
|
-
Version: 0.1.5.
|
|
3
|
+
Version: 0.1.5.dev2
|
|
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.
|
|
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
|
|
@@ -81,29 +81,29 @@ fulfills two boundary conditions, namely :math:`A(0,\dots,0) = 0`,
|
|
|
81
81
|
|
|
82
82
|
The floowoing aggregation functions are implemented in this library:
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
:math:`\mathbf{A_{ar}}` **- Arithmetic mean**
|
|
85
85
|
|
|
86
86
|
.. math:: A_{ar}(x_1,...,x_n)=\frac{1}{n}\sum \limits_{k=1}^{n} x_k
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
:math:`\mathbf{A_{qd}}` **- Quadratic mean**
|
|
89
89
|
|
|
90
90
|
.. math::
|
|
91
91
|
|
|
92
92
|
A_{qd}(x_1,...,x_n)=\sqrt{\frac{1}{n}\sum
|
|
93
93
|
\limits_{k=1}^{n} x_k^2}
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
:math:`\mathbf{A_{pr}}` **- Product aggregation**
|
|
96
96
|
|
|
97
|
-
.. math:: A_{
|
|
97
|
+
.. math:: A_{pr}(x_1, x_2, \dots, x_n) = \prod_{k=1}^n x_k
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
:math:`\mathbf{A_{gm}}` **- Geometric mean**
|
|
100
100
|
|
|
101
101
|
.. math::
|
|
102
102
|
|
|
103
103
|
A_{gm}(x_1,...,x_n)=\sqrt[n]{\prod
|
|
104
104
|
\limits_{k=1}^{n} x_k}
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
:math:`\mathbf{A_{hm}}` **- Harmonic mean**
|
|
107
107
|
|
|
108
108
|
.. math::
|
|
109
109
|
|
|
@@ -114,7 +114,7 @@ The floowoing aggregation functions are implemented in this library:
|
|
|
114
114
|
\frac{n}{\sum\limits_{k=1}^{n} \frac{1}{x_k}}, & \text{otherwise}
|
|
115
115
|
\end{cases}
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
:math:`\mathbf{A_{pw}^{(r)}}` **- Power mean**
|
|
118
118
|
|
|
119
119
|
.. math::
|
|
120
120
|
|
|
@@ -132,7 +132,7 @@ where r=-1; - Geometric Mean obtained as the limit
|
|
|
132
132
|
|
|
133
133
|
--------------
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
:math:`\mathbf{A_{ex}^{(r)}}` **- Exponential mean**
|
|
136
136
|
|
|
137
137
|
.. math::
|
|
138
138
|
|
|
@@ -140,18 +140,18 @@ where r=-1; - Geometric Mean obtained as the limit
|
|
|
140
140
|
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
|
|
141
141
|
} r \in \mathbb{R}$, $r \neq 0
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
:math:`\mathbf{A_{lm}}` **- Lehmer mean**
|
|
144
144
|
|
|
145
|
-
.. math::
|
|
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
146
|
|
|
147
|
-
|
|
147
|
+
:math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
|
|
148
148
|
|
|
149
149
|
.. math::
|
|
150
150
|
|
|
151
151
|
A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
152
152
|
(1-p) \min \limits_{1 \leq k \leq n}x_k,
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
:math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
|
|
155
155
|
|
|
156
156
|
.. math::
|
|
157
157
|
|
|
@@ -165,7 +165,7 @@ In the case of n = 2 (when only two values are aggregated) the
|
|
|
165
165
|
calculation of the median and the Olympic aggregation are reduced to the
|
|
166
166
|
case of calculating the arithmetic mean of the given values.
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
:math:`\mathbf{A_{md}}` **- Median - ordered weighted aggregation**
|
|
169
169
|
|
|
170
170
|
.. math::
|
|
171
171
|
|
|
@@ -175,15 +175,15 @@ case of calculating the arithmetic mean of the given values.
|
|
|
175
175
|
\frac{y_{n/2}+y_{(n/2)+1}}{2},&\text{if $n$ is even}
|
|
176
176
|
\end{cases},
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
:math:`\mathbf{A_{ol}}` **- Olimpic aggregation**
|
|
179
179
|
|
|
180
180
|
.. 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
181
|
|
|
182
|
-
:math:`\mathbf{A_{oln}^{p}}` **- Olimpic aggregation**
|
|
182
|
+
:math:`\mathbf{A_{oln}^{(p)}}` **- Olimpic aggregation**
|
|
183
183
|
|
|
184
184
|
We can specify how many greatest and smallest records remove
|
|
185
185
|
|
|
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.
|
|
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
187
|
|
|
188
188
|
--------------
|
|
189
189
|
|
|
@@ -196,11 +196,11 @@ https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_
|
|
|
196
196
|
|
|
197
197
|
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
198
|
|
|
199
|
-
:math:`A^
|
|
200
|
-
|
|
199
|
+
:math:`A^{(p)}_{A_1,A_2}` - Convex combinations of aggregation functions
|
|
200
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
201
201
|
|
|
202
202
|
We can construct covex combination of aggregation functions as
|
|
203
|
-
:math:`A^
|
|
203
|
+
:math:`A^{(p)}_{A_1,A_2}=pA_1+(1-p)A_2`, where :math:`A_1, A_2` are
|
|
204
204
|
aggregation functions and :math:`p \in [0,1]`.
|
|
205
205
|
|
|
206
206
|
References
|
|
@@ -7,8 +7,8 @@ aggregationslib/purepython.py,sha256=Ov7AuBHLzoebS7HwTsDo8Ceed5pMzn3i71uevHnHbno
|
|
|
7
7
|
aggregationslib/conjuctive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
aggregationslib/conjuctive/purepython.py,sha256=f7YOyrEvaTiBhWDyJrKPbWrym2PGFYIkTqfE2u1lOvk,82
|
|
9
9
|
aggregationslib/disjunctive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
aggregationslib-0.1.5.
|
|
11
|
-
aggregationslib-0.1.5.
|
|
12
|
-
aggregationslib-0.1.5.
|
|
13
|
-
aggregationslib-0.1.5.
|
|
14
|
-
aggregationslib-0.1.5.
|
|
10
|
+
aggregationslib-0.1.5.dev2.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
aggregationslib-0.1.5.dev2.dist-info/METADATA,sha256=ZGCsvh8mRspGRJ3zYDBmurpZxq14s1dOSni2SlPWR1o,5965
|
|
12
|
+
aggregationslib-0.1.5.dev2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
13
|
+
aggregationslib-0.1.5.dev2.dist-info/top_level.txt,sha256=aAqYX4rNyBs40QOh2hc-jTE08IsMq0haGyyy7-GSdUQ,16
|
|
14
|
+
aggregationslib-0.1.5.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|