Compute the bin edges for a histogram.
JAX implementation of numpy.histogram_bin_edges()
.
a (ArrayLike) – array of values to be binned
bins (ArrayLike) – Specify the number of bins in the histogram (default: 10).
range (None | Array | Sequence[ArrayLike]) – tuple of scalars. Specifies the range of the data. If not specified, the range is inferred from the data.
weights (ArrayLike | None) – unused by JAX.
An array of bin edges for the histogram.
Examples
>>> a = jnp.array([2, 5, 3, 6, 4, 1]) >>> jnp.histogram_bin_edges(a, bins=5) Array([1., 2., 3., 4., 5., 6.], dtype=float32) >>> jnp.histogram_bin_edges(a, bins=5, range=(-10, 10)) Array([-10., -6., -2., 2., 6., 10.], dtype=float32)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4