# numpy 2.5.4 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Computes the bins used internally by `histogram`.

    Parameters
    ==========
    a : ndarray
        Ravelled data array
    bins, range
        Forwarded arguments from `histogram`.
    weights : ndarray, optional
        Ravelled weights array, or None

    Returns
    =======
    bin_edges : ndarray
        Array of bin edges
    uniform_bins : (Number, Number, int):
        The upper bound, lowerbound, and number of bins, used in the optimized
        implementation of `histogram` that works on uniform bins.
    
=== parse numpydoc
short_description: 'Computes the bins used internally by `histogram`.'
blank_after_short_description: True
blank_after_long_description: False
style: numpydoc
- DocstringParam
  description: 'Ravelled data array'
  kind: param
  key: 'param'
  arg_name: 'a'
  type_name: 'ndarray'
  is_optional: False
- DocstringParam
  description: 'Forwarded arguments from `histogram`.'
  kind: param
  key: 'param'
  arg_name: 'bins'
  is_optional: False
- DocstringParam
  description: 'Forwarded arguments from `histogram`.'
  kind: param
  key: 'param'
  arg_name: 'range'
  is_optional: False
- DocstringParam
  description: 'Ravelled weights array, or None'
  kind: param
  key: 'param'
  arg_name: 'weights'
  type_name: 'ndarray'
  is_optional: True
  raw_type_name: 'ndarray, optional'
- DocstringReturns
  description: 'Array of bin edges'
  kind: returns
  key: 'returns'
  type_name: 'ndarray'
  is_generator: False
  return_name: 'bin_edges'
- DocstringReturns
  description: |
    The upper bound, lowerbound, and number of bins, used in the optimized
    implementation of `histogram` that works on uniform bins.
  kind: returns
  key: 'returns'
  type_name: '(Number, Number, int):'
  is_generator: False
  return_name: 'uniform_bins'
=== detect
numpydoc
=== compose numpydoc
Computes the bins used internally by `histogram`.

Parameters
----------
a : ndarray
    Ravelled data array
bins
    Forwarded arguments from `histogram`.
range
    Forwarded arguments from `histogram`.
weights : ndarray, optional
    Ravelled weights array, or None

Returns
-------
bin_edges : ndarray
    Array of bin edges
uniform_bins : (Number, Number, int):
    The upper bound, lowerbound, and number of bins, used in the optimized
    implementation of `histogram` that works on uniform bins.
