Exemplo n.º 1
0
 def __call__(self, *args):
     sum_ = sum(*args)
     if sum_ == len(args):
         return 1.0
     product_ = product(*args)
     count_ = float(len(args))
     return (sum_ - count_ * product_) / (count_ - sum_)
 def __call__(self, *args):
     args = self.checkArgsN(args)
     sum_ = sum(*args)
     if sum_ == len(args):
         return 1.0
     product_ = product(*args)
     count_ = float(len(args))
     return (sum_ - count_ * product_) / (count_ - sum_)
Exemplo n.º 3
0
 def __call__(self, *args):
     return pow(product(*args), 1.0 / len(args))
Exemplo n.º 4
0
 def __call__(self,*args):
     return pow(product(*args),1.0/len(args)) 
 def __call__(self, *args):
     args = self.checkArgsN(args)
     return 1.0 - pow(product(*[1.0 - x for x in args]), 1.0 / len(args))
Exemplo n.º 6
0
 def __call__(self, *args):
     args = self.checkArgsN(args)
     return pow(product(*args),1.0/len(args)) 
 def __call__(self, *args):
     return 1.0 - pow(product(*[1.0 - x for x in args]), 1.0 / len(args))
 def __call__(self,*args):
     return 1.0 - pow(product(*[1.0-x for x in args]),1.0/len(args))