parameters: (self)
docstring: Check this SampleArm passes basic validity checks: all values are finite.
  
          :raises ValueError: if any member data is non-finite or out of range
docstring_summary: Check this SampleArm passes basic validity checks: all values are finite.
docstring_tokens: Check this SampleArm passes basic validity checks : all values are finite .
function: def validate(self):
          """Check this SampleArm passes basic validity checks: all values are finite.
  
          :raises ValueError: if any member data is non-finite or out of range
  
          """
          # check that all values are finite
          if self.win < 0.0 or not numpy.isfinite(self.win):
              raise ValueError('win = {0} is non-finite or negative!'.format(self.win))
          if self.loss < 0.0 or not numpy.isfinite(self.loss):
              raise ValueError('loss = {0} is non-finite or negative!'.format(self.loss))
          if self.total < 0 or not numpy.isfinite(self.total):
              raise ValueError('total = {0} is non-finite or negative!'.format(self.total))
          if self.variance is not None and (self.variance < 0.0 or not numpy.isfinite(self.variance)):
              raise ValueError('variance = {0} is non-finite or negative!'.format(self.variance))
          if self.total == 0 and not (self.win == 0.0 and self.loss == 0.0):
              raise ValueError('win or loss is not 0 when total is 0!')
          if self.variance is None and self.win > self.total:
              raise ValueError('win cannot be greater than total when default variance computation is used! Please specify variance.')
function_tokens: def validate ( self ) : # check that all values are finite if self . win < 0.0 or not numpy . isfinite ( self . win ) : raise ValueError ( 'win = {0} is non-finite or negative!' . format ( self . win ) ) if self . loss < 0.0 or not numpy . isfinite ( self . loss ) : raise ValueError ( 'loss = {0} is non-finite or negative!' . format ( self . loss ) ) if self . total < 0 or not numpy . isfinite ( self . total ) : raise ValueError ( 'total = {0} is non-finite or negative!' . format ( self . total ) ) if self . variance is not None and ( self . variance < 0.0 or not numpy . isfinite ( self . variance ) ) : raise ValueError ( 'variance = {0} is non-finite or negative!' . format ( self . variance ) ) if self . total == 0 and not ( self . win == 0.0 and self . loss == 0.0 ) : raise ValueError ( 'win or loss is not 0 when total is 0!' ) if self . variance is None and self . win > self . total : raise ValueError ( 'win cannot be greater than total when default variance computation is used! Please specify variance.' )