AutoStatLib 0.4.5__tar.gz → 0.4.6__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 (24) hide show
  1. {autostatlib-0.4.5/src/AutoStatLib.egg-info → autostatlib-0.4.6}/PKG-INFO +1 -1
  2. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/_version.py +1 -1
  3. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/normality_tests.py +26 -18
  4. {autostatlib-0.4.5 → autostatlib-0.4.6/src/AutoStatLib.egg-info}/PKG-INFO +1 -1
  5. {autostatlib-0.4.5 → autostatlib-0.4.6}/LICENSE +0 -0
  6. {autostatlib-0.4.5 → autostatlib-0.4.6}/MANIFEST.in +0 -0
  7. {autostatlib-0.4.5 → autostatlib-0.4.6}/README.md +0 -0
  8. {autostatlib-0.4.5 → autostatlib-0.4.6}/pyproject.toml +0 -0
  9. {autostatlib-0.4.5 → autostatlib-0.4.6}/requirements.txt +0 -0
  10. {autostatlib-0.4.5 → autostatlib-0.4.6}/setup.cfg +0 -0
  11. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/AutoStatLib.py +0 -0
  12. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/StatPlots.py +0 -0
  13. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/__init__.py +0 -0
  14. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/__main__.py +0 -0
  15. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/_protocol.py +0 -0
  16. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/helpers.py +0 -0
  17. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/statistical_tests.py +0 -0
  18. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/text_formatting.py +0 -0
  19. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
  20. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
  21. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/requires.txt +0 -0
  22. {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/top_level.txt +0 -0
  23. {autostatlib-0.4.5 → autostatlib-0.4.6}/tests/test_autostatlib.py +0 -0
  24. {autostatlib-0.4.5 → autostatlib-0.4.6}/tests/test_statplots.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AutoStatLib
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: AutoStatLib - a simple statistical analysis tool
5
5
  Author: Stemonitis, SciWare LLC
6
6
  Author-email: konung-yaropolk <yaropolk1995@gmail.com>
@@ -1,2 +1,2 @@
1
1
  # AutoStatLib package version:
2
- __version__ = "0.4.5"
2
+ __version__ = "0.4.6"
@@ -205,22 +205,30 @@ class NormalityTests(StatAnalysisProtocol):
205
205
  )
206
206
  result = anderson(data, dist="norm", method=mc_method)
207
207
  return float(result.statistic), float(result.pvalue)
208
+
209
+ if method == "interpolate":
210
+ result = anderson(data, dist="norm", method="interpolate")
211
+ return float(result.statistic), float(result.pvalue)
208
212
 
209
- n: int = len(data)
210
- ad: float = float(anderson(data, dist="norm", method="interpolate").statistic)
211
-
212
- # Adjust statistic for small sample sizes, then map to a
213
- # continuous p-value (Jantschi & Bolboaca, 2018).
214
- s: float = ad * (1 + 0.75 / n + 2.25 / (n**2))
215
-
216
- p: float
217
- if s >= 0.6:
218
- p = np.e ** (1.2937 - 5.709 * s + 0.0186 * s**2)
219
- elif s > 0.34:
220
- p = np.e ** (0.9177 - 4.279 * s - 1.38 * s**2)
221
- elif s > 0.2:
222
- p = 1 - np.e ** (-8.318 + 42.796 * s - 59.938 * s**2)
223
- else:
224
- p = 1 - np.e ** (-13.436 + 101.14 * s - 223.73 * s**2)
225
-
226
- return ad, p
213
+ # n: int = len(data)
214
+ # ad: float = float(anderson(data, dist="norm", method="interpolate").statistic)
215
+
216
+ # # Adjust statistic for small sample sizes, then map to a
217
+ # # continuous p-value (Jantschi & Bolboaca, 2018).
218
+ # s: float = ad * (1 + 0.75 / n + 2.25 / (n**2))
219
+
220
+ # try:
221
+ # p: float
222
+ # if s >= 0.6:
223
+ # p = np.e ** (1.2937 - 5.709 * s + 0.0186 * s**2)
224
+ # elif s > 0.34:
225
+ # p = np.e ** (0.9177 - 4.279 * s - 1.38 * s**2)
226
+ # elif s > 0.2:
227
+ # p = 1 - np.e ** (-8.318 + 42.796 * s - 59.938 * s**2)
228
+ # else:
229
+ # p = 1 - np.e ** (-13.436 + 101.14 * s - 223.73 * s**2)
230
+ # # catch rear case of overflow when p is too small
231
+ # except Exception(OverflowError):
232
+ # p = 5e-324
233
+
234
+ # return ad, p
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AutoStatLib
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: AutoStatLib - a simple statistical analysis tool
5
5
  Author: Stemonitis, SciWare LLC
6
6
  Author-email: konung-yaropolk <yaropolk1995@gmail.com>
File without changes
File without changes
File without changes
File without changes
File without changes