summaryrefslogtreecommitdiff
path: root/ricky/param/probabilities.py
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-06 23:16:09 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-06 23:16:09 -0800
commitf38100a74f0d88cafeac8fb4c8fb99241007da08 (patch)
tree7bb1278dcc4243da0bac167e800c340f4ecf1495 /ricky/param/probabilities.py
parentf72d7dc6a5a926f56790151e3dde36eaf7978ba0 (diff)
started integrating probabilities
Diffstat (limited to 'ricky/param/probabilities.py')
-rw-r--r--ricky/param/probabilities.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/ricky/param/probabilities.py b/ricky/param/probabilities.py
deleted file mode 100644
index d109b18..0000000
--- a/ricky/param/probabilities.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from ricky.param.probability import Probability
-import sys
-class Probabilities:
- def __init__(self, *args):
- self._values = args
- def __iter__(self):
- return iter(self._values)
- def __len__(self):
- return len(self._values)
- def __str__(self):
- return str(self._values)
- def __getitem__(self, i):
- return self._values[i]
- def search(self, s):
- for i in self:
- if str(s) in i.value:
- return i
- @classmethod
- def from_dict(cls, *args):
- probabilities = map(lambda x: Probability(**x), args);
- return cls(*probabilities);