Skip to content

Commit

Permalink
updates to readme, some finalish changes to waldwolf test, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aschleg committed Aug 10, 2020
1 parent 2fcbc3c commit eb9dc86
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ python setup.py install
* Mann-Whitney (two sample nonparametric variant of t-test)
* Mood's Median test
* One-sample Runs Test
* Wald-Wolfowitz Two-Sample Runs Test
* Sign test of consistent differences between observation pairs
* Wald-Wolfowitz Two-Sample Runs test
* Wilcoxon Rank Sum Test (one sample nonparametric variant of paired and one-sample t-test)
Expand Down
22 changes: 22 additions & 0 deletions docs/source/generated/hypothetical.nonparametric.VanDerWaerden.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
hypothetical.nonparametric.VanDerWaerden
========================================

.. currentmodule:: hypothetical.nonparametric

.. autoclass:: VanDerWaerden


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::

~VanDerWaerden.__init__






5 changes: 2 additions & 3 deletions hypothetical/nonparametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -1799,10 +1799,9 @@ def __init__(self, x, y, continuity=True):
def _test(self):
a = pd.DataFrame({'a': list(np.repeat('A', len(self.x))), 'b': self.x})
b = pd.DataFrame({'a': list(np.repeat('B', len(self.y))), 'b': self.y})
c = a.append(b)
d = c.sort_values('b')['a']
c = a.append(b).sort_values('b')['a']

r = count_runs(d)[1]
r = count_runs(c)[1]
r_range = np.arange(2, r + 1)
evens = r_range[r_range % 2 == 0]
odds = r_range[r_range % 2 != 0]
Expand Down

0 comments on commit eb9dc86

Please sign in to comment.