diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-12-07 17:36:03 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-12-07 17:36:03 -0800 |
| commit | cd48eb7a6fd7c1e4a94846c3346d7b4cef6a6c50 (patch) | |
| tree | 4d9055f54848c08f651b6580e28be356b5f09570 /unused/probabilities.py | |
| parent | e679707290eff0fc30bee0a45b7d409a87c97e8a (diff) | |
finished offline mode for ricky
Diffstat (limited to 'unused/probabilities.py')
| -rw-r--r-- | unused/probabilities.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/unused/probabilities.py b/unused/probabilities.py deleted file mode 100644 index d109b18..0000000 --- a/unused/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); |
