Skip to content

grepdisc/pymsetmath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pymsetmath overview

Objective

pymsetmath contains methods for calculations using multisets.

Examples are included for estimating the probability of missing one or more of the top N results for any number of results returned by each of m workers.

Usage

>>> import pymsetmath
>>> pymsetmath.examples.print_cumulative_prob(20, 4)

Inputs are integers. Output is printed to stdout.

Directories

pymsetmath/
|-- LICENSE.txt
|-- README.rst
|-- setup.cfg
|-- setup.py
|-- pymsetmath/
|   |-- __init__.py
|   |-- multiset.py
|   |-- prob_of_missing.py
|-- tests/
|   |-- __init__.py
|   |-- test_pymsetmath.py

To do

  1. Add more to this overview
  2. Add additional use case examples
  3. Include support for groups of multisets which do not share a sum
  4. Modify factorial to utilize memoization via a decorator
  5. Annotate references including:

Future direction

While the presently solved problem uses an assumption that each worker has an equal probability of finding a result, multiset methods could also be used to test the validity of that assumption by attempting to fit actual observed results by a multivariate hypergeometric distribution.

About

Combinatorial math using multisets in pure Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages