aggregationslib 0.1.5.dev4__tar.gz → 0.1.5.dev6__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.
- {aggregationslib-0.1.5.dev4/aggregationslib.egg-info → aggregationslib-0.1.5.dev6}/PKG-INFO +14 -18
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/README.md +11 -16
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/README.rst +13 -17
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/aggregations.py +8 -8
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6/aggregationslib.egg-info}/PKG-INFO +14 -18
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib.egg-info/SOURCES.txt +1 -0
- aggregationslib-0.1.5.dev6/commands.md +2 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/.github/workflows/python-publish.yml +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/.gitignore +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/LICENSE +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/__init__.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/aggregation.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/conjuctive/__init__.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/conjuctive/purepython.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/decimalaggregations.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/disjunctive/__init__.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/example.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/purepython.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib.egg-info/dependency_links.txt +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib.egg-info/requires.txt +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib.egg-info/top_level.txt +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/pyproject.toml +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/setup.cfg +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/tests/__init__.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/tests/test_aggregations.py +0 -0
- {aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/tests/test_decimal_exponential_mean.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aggregationslib
|
|
3
|
-
Version: 0.1.5.
|
|
3
|
+
Version: 0.1.5.dev6
|
|
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
|
|
@@ -63,15 +63,6 @@ or ‘**repr**\ ()’ methods.
|
|
|
63
63
|
print(func3.__repr__()) # function parameters are printed in order: func1, func2
|
|
64
64
|
>>>A_arpw(r=3)
|
|
65
65
|
|
|
66
|
-
``exponential(y, r=1)`` is given by equation
|
|
67
|
-
|
|
68
|
-
.. math::
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
A_6^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
72
|
-
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), where
|
|
73
|
-
r \in \mathbb{R}, r \neq 0
|
|
74
|
-
|
|
75
66
|
Aggregation functions
|
|
76
67
|
---------------------
|
|
77
68
|
|
|
@@ -139,25 +130,30 @@ where r=-1; - Geometric Mean obtained as the limit
|
|
|
139
130
|
|
|
140
131
|
A_{ex}^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
141
132
|
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
|
|
142
|
-
} r \in \mathbb{R}
|
|
133
|
+
} r \in \mathbb{R}, r \neq 0
|
|
143
134
|
|
|
144
135
|
:math:`\mathbf{A_{lm}}` **- Lehmer mean**
|
|
145
136
|
|
|
146
|
-
.. math::
|
|
137
|
+
.. math::
|
|
138
|
+
|
|
139
|
+
A_{lm}(x_1,...,x_n)= \begin{cases}
|
|
140
|
+
0, & r\leq 1, \exists_{1 \leq k \leq n} x^{k} = 0 \\
|
|
141
|
+
\frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}, & \text{otherwise}
|
|
142
|
+
\end{cases}
|
|
147
143
|
|
|
148
144
|
:math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
|
|
149
145
|
|
|
150
146
|
.. math::
|
|
151
147
|
|
|
152
148
|
A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
153
|
-
(1-p) \min \limits_{1 \leq k \leq n}x_k,
|
|
149
|
+
(1-p) \min \limits_{1 \leq k \leq n}x_k, p \in [0, 1]
|
|
154
150
|
|
|
155
151
|
:math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
|
|
156
152
|
|
|
157
153
|
.. math::
|
|
158
154
|
|
|
159
155
|
A_{amx}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
160
|
-
(1-p) \max \limits_{1\leq k \leq n}x_k,
|
|
156
|
+
(1-p) \max \limits_{1\leq k \leq n}x_k, p \in [0, 1]
|
|
161
157
|
|
|
162
158
|
OWA
|
|
163
159
|
~~~
|
|
@@ -184,13 +180,11 @@ case of calculating the arithmetic mean of the given values.
|
|
|
184
180
|
|
|
185
181
|
We can specify how many greatest and smallest records remove
|
|
186
182
|
|
|
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
|
|
183
|
+
.. math:: A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p+1}^{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, p \in \mathbb{N}, p\geq 1
|
|
188
184
|
|
|
189
185
|
--------------
|
|
190
186
|
|
|
191
|
-
:math:`\mathbf{A_{ln}}` **- Logaritmic aggregation**
|
|
192
|
-
|
|
193
|
-
https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments
|
|
187
|
+
:math:`\mathbf{A_{ln}}` **- Logaritmic aggregation [2]**
|
|
194
188
|
|
|
195
189
|
.. math::
|
|
196
190
|
|
|
@@ -209,3 +203,5 @@ References
|
|
|
209
203
|
|
|
210
204
|
1. Beliakov, G., Bustince, H., and Calvo, T.: A practical Guide to
|
|
211
205
|
Averaging Functions. Berlin: Springer Vol. 329, 2016.
|
|
206
|
+
2. `Mustonen, Seppo. (2010). Logarithmic mean for several
|
|
207
|
+
arguments. <https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments>`__
|
|
@@ -38,13 +38,7 @@ print(func3.__repr__()) # function parameters are printed in order: func1, func2
|
|
|
38
38
|
>>>A_arpw(r=3)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
`exponential(y, r=1)` is given by equation
|
|
42
41
|
|
|
43
|
-
$$
|
|
44
|
-
A_6^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
45
|
-
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), where
|
|
46
|
-
r \in \mathbb{R}, r \neq 0
|
|
47
|
-
$$
|
|
48
42
|
|
|
49
43
|
## Aggregation functions
|
|
50
44
|
|
|
@@ -107,21 +101,24 @@ $\mathbf{A_{ex}^{(r)}}$ **- Exponential mean**
|
|
|
107
101
|
|
|
108
102
|
$$A_{ex}^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
109
103
|
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
|
|
110
|
-
} r \in \mathbb{R}
|
|
104
|
+
} r \in \mathbb{R}, r \neq 0$$
|
|
111
105
|
|
|
112
106
|
$\mathbf{A_{lm}}$ **- Lehmer mean**
|
|
113
107
|
|
|
114
|
-
$$A_{lm}(x_1,...,x_n)= \
|
|
108
|
+
$$A_{lm}(x_1,...,x_n)= \begin{cases}
|
|
109
|
+
0, & r\leq 1, \exists_{1 \leq k \leq n} x^{k} = 0 \\
|
|
110
|
+
\frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}, & \text{otherwise}
|
|
111
|
+
\end{cases}$$
|
|
115
112
|
|
|
116
113
|
$\mathbf{A_{amn}^{(p)}}$ **- Arithmetic minimum mean**
|
|
117
114
|
|
|
118
115
|
$$A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
119
|
-
(1-p) \min \limits_{1 \leq k \leq n}x_k
|
|
116
|
+
(1-p) \min \limits_{1 \leq k \leq n}x_k, p \in [0, 1]$$
|
|
120
117
|
|
|
121
118
|
$\mathbf{A_{amx}^{(p)}}$ **- Arithmetic maximum mean**
|
|
122
119
|
|
|
123
120
|
$$A_{amx}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
124
|
-
(1-p) \max \limits_{1\leq k \leq n}x_k
|
|
121
|
+
(1-p) \max \limits_{1\leq k \leq n}x_k, p \in [0, 1]$$
|
|
125
122
|
|
|
126
123
|
|
|
127
124
|
### OWA
|
|
@@ -146,14 +143,11 @@ $\mathbf{A_{oln}^{(p)}}$ **- Olimpic aggregation**
|
|
|
146
143
|
|
|
147
144
|
We can specify how many greatest and smallest records remove
|
|
148
145
|
|
|
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
|
|
146
|
+
$$ A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p+1}^{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, p \in \mathbb{N}, p\geq 1$$
|
|
150
147
|
|
|
151
148
|
--------------------
|
|
152
149
|
|
|
153
|
-
$\mathbf{A_{ln}}$ **- Logaritmic aggregation**
|
|
154
|
-
|
|
155
|
-
https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments
|
|
156
|
-
|
|
150
|
+
$\mathbf{A_{ln}}$ **- Logaritmic aggregation [2]**
|
|
157
151
|
$$
|
|
158
152
|
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)}
|
|
159
153
|
$$
|
|
@@ -167,4 +161,5 @@ We can construct covex combination of aggregation functions as $A^{(p)}_{A_1,A_2
|
|
|
167
161
|
## References
|
|
168
162
|
|
|
169
163
|
1. Beliakov, G., Bustince, H., and Calvo, T.: A practical Guide to Averaging Functions.
|
|
170
|
-
Berlin: Springer Vol. 329, 2016.
|
|
164
|
+
Berlin: Springer Vol. 329, 2016.
|
|
165
|
+
2. [Mustonen, Seppo. (2010). Logarithmic mean for several arguments. ](https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments)
|
|
@@ -45,15 +45,6 @@ or ‘**repr**\ ()’ methods.
|
|
|
45
45
|
print(func3.__repr__()) # function parameters are printed in order: func1, func2
|
|
46
46
|
>>>A_arpw(r=3)
|
|
47
47
|
|
|
48
|
-
``exponential(y, r=1)`` is given by equation
|
|
49
|
-
|
|
50
|
-
.. math::
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
A_6^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
54
|
-
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), where
|
|
55
|
-
r \in \mathbb{R}, r \neq 0
|
|
56
|
-
|
|
57
48
|
Aggregation functions
|
|
58
49
|
---------------------
|
|
59
50
|
|
|
@@ -121,25 +112,30 @@ where r=-1; - Geometric Mean obtained as the limit
|
|
|
121
112
|
|
|
122
113
|
A_{ex}^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
123
114
|
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
|
|
124
|
-
} r \in \mathbb{R}
|
|
115
|
+
} r \in \mathbb{R}, r \neq 0
|
|
125
116
|
|
|
126
117
|
:math:`\mathbf{A_{lm}}` **- Lehmer mean**
|
|
127
118
|
|
|
128
|
-
.. math::
|
|
119
|
+
.. math::
|
|
120
|
+
|
|
121
|
+
A_{lm}(x_1,...,x_n)= \begin{cases}
|
|
122
|
+
0, & r\leq 1, \exists_{1 \leq k \leq n} x^{k} = 0 \\
|
|
123
|
+
\frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}, & \text{otherwise}
|
|
124
|
+
\end{cases}
|
|
129
125
|
|
|
130
126
|
:math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
|
|
131
127
|
|
|
132
128
|
.. math::
|
|
133
129
|
|
|
134
130
|
A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
135
|
-
(1-p) \min \limits_{1 \leq k \leq n}x_k,
|
|
131
|
+
(1-p) \min \limits_{1 \leq k \leq n}x_k, p \in [0, 1]
|
|
136
132
|
|
|
137
133
|
:math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
|
|
138
134
|
|
|
139
135
|
.. math::
|
|
140
136
|
|
|
141
137
|
A_{amx}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
142
|
-
(1-p) \max \limits_{1\leq k \leq n}x_k,
|
|
138
|
+
(1-p) \max \limits_{1\leq k \leq n}x_k, p \in [0, 1]
|
|
143
139
|
|
|
144
140
|
OWA
|
|
145
141
|
~~~
|
|
@@ -166,13 +162,11 @@ case of calculating the arithmetic mean of the given values.
|
|
|
166
162
|
|
|
167
163
|
We can specify how many greatest and smallest records remove
|
|
168
164
|
|
|
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
|
|
165
|
+
.. math:: A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p+1}^{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, p \in \mathbb{N}, p\geq 1
|
|
170
166
|
|
|
171
167
|
--------------
|
|
172
168
|
|
|
173
|
-
:math:`\mathbf{A_{ln}}` **- Logaritmic aggregation**
|
|
174
|
-
|
|
175
|
-
https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments
|
|
169
|
+
:math:`\mathbf{A_{ln}}` **- Logaritmic aggregation [2]**
|
|
176
170
|
|
|
177
171
|
.. math::
|
|
178
172
|
|
|
@@ -191,3 +185,5 @@ References
|
|
|
191
185
|
|
|
192
186
|
1. Beliakov, G., Bustince, H., and Calvo, T.: A practical Guide to
|
|
193
187
|
Averaging Functions. Berlin: Springer Vol. 329, 2016.
|
|
188
|
+
2. `Mustonen, Seppo. (2010). Logarithmic mean for several
|
|
189
|
+
arguments. <https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments>`__
|
|
@@ -468,28 +468,28 @@ class A_oln:
|
|
|
468
468
|
"""
|
|
469
469
|
|
|
470
470
|
name = 'oln'
|
|
471
|
-
valid_params = ['
|
|
471
|
+
valid_params = ['p']
|
|
472
472
|
|
|
473
|
-
def __init__(self,
|
|
474
|
-
self.
|
|
473
|
+
def __init__(self, p):
|
|
474
|
+
self.__p = p
|
|
475
475
|
|
|
476
476
|
def __call__(self, array):
|
|
477
477
|
if np.ndim(array) != 1:
|
|
478
478
|
raise ValueError("y must be 1 dimensional array")
|
|
479
|
-
if len(array) <= self.
|
|
479
|
+
if len(array) <= self.__p * 2:
|
|
480
480
|
return np.mean(array)
|
|
481
481
|
else:
|
|
482
|
-
d = np.sort(array)[self.
|
|
482
|
+
d = np.sort(array)[self.__p:-self.__p]
|
|
483
483
|
return np.mean(d)
|
|
484
484
|
|
|
485
485
|
def __repr__(self):
|
|
486
|
-
return f"A_oln(n={self.
|
|
486
|
+
return f"A_oln(n={self.__p})"
|
|
487
487
|
|
|
488
488
|
def __str__(self):
|
|
489
|
-
return f"A_oln({self.
|
|
489
|
+
return f"A_oln({self.__p})"
|
|
490
490
|
|
|
491
491
|
def toLatex(self, params: str):
|
|
492
|
-
return f"A_{{oln}}^{{
|
|
492
|
+
return f"A_{{oln}}^{{p={self.__p}}}({params})"
|
|
493
493
|
|
|
494
494
|
|
|
495
495
|
# TODO test this aggregation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aggregationslib
|
|
3
|
-
Version: 0.1.5.
|
|
3
|
+
Version: 0.1.5.dev6
|
|
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
|
|
@@ -63,15 +63,6 @@ or ‘**repr**\ ()’ methods.
|
|
|
63
63
|
print(func3.__repr__()) # function parameters are printed in order: func1, func2
|
|
64
64
|
>>>A_arpw(r=3)
|
|
65
65
|
|
|
66
|
-
``exponential(y, r=1)`` is given by equation
|
|
67
|
-
|
|
68
|
-
.. math::
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
A_6^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
72
|
-
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), where
|
|
73
|
-
r \in \mathbb{R}, r \neq 0
|
|
74
|
-
|
|
75
66
|
Aggregation functions
|
|
76
67
|
---------------------
|
|
77
68
|
|
|
@@ -139,25 +130,30 @@ where r=-1; - Geometric Mean obtained as the limit
|
|
|
139
130
|
|
|
140
131
|
A_{ex}^{(r)}(x_1,...,x_n)= \frac{1}{r}\ln
|
|
141
132
|
\Big(\frac{1}{n} \sum \limits_{k=1}^{n} e^{rx_k}\Big), \text{where
|
|
142
|
-
} r \in \mathbb{R}
|
|
133
|
+
} r \in \mathbb{R}, r \neq 0
|
|
143
134
|
|
|
144
135
|
:math:`\mathbf{A_{lm}}` **- Lehmer mean**
|
|
145
136
|
|
|
146
|
-
.. math::
|
|
137
|
+
.. math::
|
|
138
|
+
|
|
139
|
+
A_{lm}(x_1,...,x_n)= \begin{cases}
|
|
140
|
+
0, & r\leq 1, \exists_{1 \leq k \leq n} x^{k} = 0 \\
|
|
141
|
+
\frac{\sum \limits_{k=1}^{n}x_k^r}{\sum \limits_{k=1}^{n}x_k^{r-1}}, & \text{otherwise}
|
|
142
|
+
\end{cases}
|
|
147
143
|
|
|
148
144
|
:math:`\mathbf{A_{amn}^{(p)}}` **- Arithmetic minimum mean**
|
|
149
145
|
|
|
150
146
|
.. math::
|
|
151
147
|
|
|
152
148
|
A_{amn}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
153
|
-
(1-p) \min \limits_{1 \leq k \leq n}x_k,
|
|
149
|
+
(1-p) \min \limits_{1 \leq k \leq n}x_k, p \in [0, 1]
|
|
154
150
|
|
|
155
151
|
:math:`\mathbf{A_{amx}^{(p)}}` **- Arithmetic maximum mean**
|
|
156
152
|
|
|
157
153
|
.. math::
|
|
158
154
|
|
|
159
155
|
A_{amx}^{(p)}(x_1,...,x_n)=\frac{p}{n}\sum \limits_{k=1}^{n} x_k+
|
|
160
|
-
(1-p) \max \limits_{1\leq k \leq n}x_k,
|
|
156
|
+
(1-p) \max \limits_{1\leq k \leq n}x_k, p \in [0, 1]
|
|
161
157
|
|
|
162
158
|
OWA
|
|
163
159
|
~~~
|
|
@@ -184,13 +180,11 @@ case of calculating the arithmetic mean of the given values.
|
|
|
184
180
|
|
|
185
181
|
We can specify how many greatest and smallest records remove
|
|
186
182
|
|
|
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
|
|
183
|
+
.. math:: A_{oln}^{(p)}(x_1,\dots,x_n) = \frac{1}{n-2p} \sum \limits_{k=p+1}^{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, p \in \mathbb{N}, p\geq 1
|
|
188
184
|
|
|
189
185
|
--------------
|
|
190
186
|
|
|
191
|
-
:math:`\mathbf{A_{ln}}` **- Logaritmic aggregation**
|
|
192
|
-
|
|
193
|
-
https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments
|
|
187
|
+
:math:`\mathbf{A_{ln}}` **- Logaritmic aggregation [2]**
|
|
194
188
|
|
|
195
189
|
.. math::
|
|
196
190
|
|
|
@@ -209,3 +203,5 @@ References
|
|
|
209
203
|
|
|
210
204
|
1. Beliakov, G., Bustince, H., and Calvo, T.: A practical Guide to
|
|
211
205
|
Averaging Functions. Berlin: Springer Vol. 329, 2016.
|
|
206
|
+
2. `Mustonen, Seppo. (2010). Logarithmic mean for several
|
|
207
|
+
arguments. <https://www.researchgate.net/publication/228886844_Logarithmic_mean_for_several_arguments>`__
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/.github/workflows/python-publish.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/conjuctive/__init__.py
RENAMED
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/conjuctive/purepython.py
RENAMED
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/decimalaggregations.py
RENAMED
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib/disjunctive/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib.egg-info/requires.txt
RENAMED
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/aggregationslib.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aggregationslib-0.1.5.dev4 → aggregationslib-0.1.5.dev6}/tests/test_decimal_exponential_mean.py
RENAMED
|
File without changes
|