Computes the multidimensional histogram of some data.
| Parameters: | 
  | 
|---|---|
| Returns: | Histogram (bin counts, always returned) and weighted histogram of the sample (or None if weights is None).  | 
| Return type: | tuple (numpy.array, numpy.array) or (numpy.array, None)  |