Exemplo n.º 1
0
 def _clear_cache(self):
     LowPoly._clear_cache(self)
     try:
         del self._set_function
     except AttributeError:
         pass
     try:
         del self._mobius
     except AttributeError:
         pass
Exemplo n.º 2
0
 def _clear_cache(self):
     LowPoly._clear_cache(self)
     try:
         del self._set_function
     except AttributeError:
         pass
     try:
         del self._mobius
     except AttributeError:
         pass
Exemplo n.º 3
0
 def extend(self, keys=None, lower=True, upper=False, algorithm='linprog'):
     LowPoly.extend(self, keys, lower, upper, algorithm)
Exemplo n.º 4
0
 def _make_value(self, value):
     lprev, uprev = LowPoly._make_value(self, value)
     if uprev is not None:
         raise ValueError('cannot specify upper prevision')
     return lprev, uprev
Exemplo n.º 5
0
 def _make_key(self, key):
     gamble, event = LowPoly._make_key(self, key)
     if not event.is_true():
         raise ValueError('not unconditional')
     return gamble, event
Exemplo n.º 6
0
 def extend(self, keys=None, lower=True, upper=False, algorithm='linprog'):
     LowPoly.extend(self, keys, lower, upper, algorithm)
Exemplo n.º 7
0
 def _make_value(self, value):
     lprev, uprev = LowPoly._make_value(self, value)
     if uprev is not None:
         raise ValueError('cannot specify upper prevision')
     return lprev, uprev
Exemplo n.º 8
0
 def _make_key(self, key):
     gamble, event = LowPoly._make_key(self, key)
     if not event.is_true():
         raise ValueError('not unconditional')
     return gamble, event
Exemplo n.º 9
0
 def _make_value(self, value):
     lprev, uprev = LowPoly._make_value(self, value)
     if self.number_cmp(lprev, uprev) != 0:
         raise ValueError('can only specify precise prevision')
     return lprev, uprev
Exemplo n.º 10
0
 def _make_value(self, value):
     lprev, uprev = LowPoly._make_value(self, value)
     if self.number_cmp(lprev, uprev) != 0:
         raise ValueError('can only specify precise prevision')
     return lprev, uprev