class_docstr: Distribution object used to store distribution objects in Aim repository.
  
  Args:
      samples (:obj:): Array-like object of data sampled from a distribution.
      bin_count (:obj:`int`, optional): Optional distribution bin count for
          binning `samples`. 64 by default, max 512.
      hist (:obj:, optional): Array-like object representing bin frequency counts.
          Max 512 bins allowed. `samples` must not be specified.
      bin_range (:obj:`tuple`, optional): Tuple of (start, end) bin range.
class_docstr_tok: ["Distribution","object","used","to","store","distribution","objects","in","Aim","repository",".","Args",":","samples","(",":","obj",":",")",":","Array-like","object","of","data","sampled","from","a","distribution",".","bin_count","(",":","obj",":","`","int","`",",","optional",")",":","Optional","distribution","bin","count","for","binning","`","samples","`",".","64","by","default",",","max","512.","hist","(",":","obj",":",",","optional",")",":","Array-like","object","representing","bin","frequency","counts",".","Max","512","bins","allowed",".","`","samples","`","must","not","be","specified",".","bin_range","(",":","obj",":","`","tuple","`",",","optional",")",":","Tuple","of","(","start",",","end",")","bin","range","."]
code: def _from_np_histogram(self, hist: np.ndarray, bin_edges: np.ndarray):
      bin_count = len(hist)
      if 1 > bin_count > 512:
          raise ValueError(
              "Supported range for `bin_count` is [1, 512]."
          )
  
      self.storage["data"] = BLOB(data=hist.tobytes())
      self.storage["dtype"] = str(hist.dtype)
      self.storage["range"] = [
          bin_edges[0].item(),
          bin_edges[-1].item(),
      ]
      self.storage["bin_count"] = bin_count
  
file_path: aim/aim/sdk/objects/distribution.py
imports: import numpy
  from aim.storage.object import CustomObject
  from aim.storage.types import BLOB
label_desc: Use image node_id 9 for calling the Distribution obj's underlying member method code with example usage: obj._from_np_histogram(hist, bin_edges) without return types