parameters: (self, samples)
return_statement: return bprime
docstring: randtobest1bin, randtobest1exp
docstring_summary: randtobest1bin, randtobest1exp
docstring_tokens: randtobest1bin randtobest1exp
function: def _randtobest1(self, samples):
          """randtobest1bin, randtobest1exp"""
          r0, r1, r2 = samples[:3]
          bprime = np.copy(self.population[r0])
          bprime += self.scale * (self.population[0] - bprime)
          bprime += self.scale * (self.population[r1] -
                                  self.population[r2])
          return bprime
function_tokens: def _randtobest1 ( self , samples ) : r0 , r1 , r2 = samples [ : 3 ] bprime = np . copy ( self . population [ r0 ] ) bprime += self . scale * ( self . population [ 0 ] - bprime ) bprime += self . scale * ( self . population [ r1 ] - self . population [ r2 ] ) return bprime