Skip to content

Commit

Permalink
Release 1.0.0.dev11
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoplectic committed Sep 28, 2017
1 parent 639baa3 commit a600059
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -42,3 +42,4 @@ docs/images/*.png
.idea
.cache
.hypothesis
.pypirc
2 changes: 1 addition & 1 deletion dit/__init__.py
Expand Up @@ -13,7 +13,7 @@
"""

__version__ = "1.0.0.dev10"
__version__ = "1.0.0.dev11"

# Order is important!
from .params import ditParams
Expand Down
67 changes: 67 additions & 0 deletions dit/example_dists/dependencies.py
@@ -0,0 +1,67 @@
"""
Distributions illustrating three times of dependency among two variables.
"""

from __future__ import division

from .. import Distribution

__all__ = ['stacked', 'mixed']


# the first four outcomes are conditional dependence
# the next two are conditional independence
# the last four are intrinsic dependence
_stacked_outcomes = [
'000',
'011',
'101',
'110',
'222',
'333',
'444',
'445',
'554',
'555',
]
_stacked_pmf = [1/12]*4 + [1/6]*2 + [1/12]*4
stacked = Distribution(_stacked_outcomes, _stacked_pmf)

# each var expands in binary as:
# (conditional dependence, conditional independence, intrinsic dependence)
_mixed_outcomes = [
'000',
'044',
'404',
'440',
'222',
'266',
'626',
'662',
'110',
'154',
'514',
'550',
'332',
'376',
'736',
'772',
'001',
'045',
'405',
'441',
'223',
'267',
'627',
'663',
'111',
'155',
'515',
'551',
'333',
'377',
'737',
'773',
]
_mixed_pmf = [1/32]*32
mixed = Distribution(_mixed_outcomes, _mixed_pmf)
20 changes: 10 additions & 10 deletions setup.py
Expand Up @@ -207,16 +207,16 @@ def main():
'license': "BSD",

'classifiers': [
"Intended Audience:: Science / Research",
"License:: OSI Approved:: BSD License",
"Programming Language:: Python:: 2.7",
"Programming Language:: Python:: 3.3",
"Programming Language:: Python:: 3.4",
"Programming Language:: Python:: 3.5",
"Programming Language:: Python:: 3.6",
"Topic:: Scientific / Engineering",
"Topic:: Scientific / Engineering:: Mathematics",
"Topic:: Scientific / Engineering:: Physics",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
]
}

Expand Down

0 comments on commit a600059

Please sign in to comment.