parameters: (self, candidate, samples)
return_statement: return bprime
docstring: currenttobest1bin, currenttobest1exp
docstring_summary: currenttobest1bin, currenttobest1exp
docstring_tokens: currenttobest1bin currenttobest1exp
function: def _currenttobest1(self, candidate, samples):
          """currenttobest1bin, currenttobest1exp"""
          r0, r1 = samples[:2]
          bprime = (self.population[candidate] + self.scale *
                    (self.population[0] - self.population[candidate] +
                     self.population[r0] - self.population[r1]))
          return bprime
function_tokens: def _currenttobest1 ( self , candidate , samples ) : r0 , r1 = samples [ : 2 ] bprime = ( self . population [ candidate ] + self . scale * ( self . population [ 0 ] - self . population [ candidate ] + self . population [ r0 ] - self . population [ r1 ] ) ) return bprime