docstr: Rounds a bandit variable by selecting the closest point in the domain
  Closest here is defined by euclidian distance
  Assumes an 1d array of the same length as the single variable value
docstr_tok: ["Rounds","a","bandit","variable","by","selecting","the","closest","point","in","the","domain","Closest","here","is","defined","by","euclidian","distance","Assumes","an","1d","array","of","the","same","length","as","the","single","variable","value"]
code: def round(self, value_array):
      """
      Rounds a bandit variable by selecting the closest point in the domain
      Closest here is defined by euclidian distance
      Assumes an 1d array of the same length as the single variable value
      """
      distances = np.linalg.norm(
          np.array(self.domain) - value_array, axis=1
      )
      idx = np.argmin(distances)
      return [self.domain[idx]]
  
imports: import numpy
  from copy import deepcopy
  from ..errors import InvalidConfigError
label_desc: Use image node_id 8 for calling the BanditVariable obj's underlying member method code with example usage: obj.round(value_array) and returns: list