histogramdd(sample, bins=10, range=None, normed=None, weights=None, density=None)
The data to be histogrammed.
Note the unusual interpretation of sample when an array_like:
When an array, each row is a coordinate in a D-dimensional space - such as histogramdd(np.array([p1, p2, p3]))
.
When an array_like, each element is the list of values for single coordinate - such as histogramdd((X, Y, Z))
.
The first form should be preferred.
The bin specification:
A sequence of arrays describing the monotonically increasing bin edges along each dimension.
The number of bins for each dimension (nx, ny, ... =bins)
The number of bins for all dimensions (nx=ny=...=bins).
A sequence of length D, each an optional (lower, upper) tuple giving the outer bin edges to be used if the edges are not given explicitly in :None:None:`bins`
. An entry of None in the sequence results in the minimum and maximum values being used for the corresponding dimension. The default, None, is equivalent to passing a tuple of D None values.
If False, the default, returns the number of samples in each bin. If True, returns the probability density function at the bin, bin_count / sample_count / bin_volume
.
An alias for the density argument that behaves identically. To avoid confusion with the broken normed argument to histogram
, :None:None:`density`
should be preferred.
An array of values w_i
weighing each sample :None:None:`(x_i, y_i, z_i, ...)`
. Weights are normalized to 1 if normed is True. If normed is False, the values of the returned histogram are equal to the sum of the weights belonging to the samples falling into each bin.
The multidimensional histogram of sample x. See normed and weights for the different possible semantics.
A list of D arrays describing the bin edges for each dimension.
Compute the multidimensional histogram of some data.
histogram
1-D histogram
histogram2d
2-D histogram
>>> r = np.random.randn(100,3)See :
... H, edges = np.histogramdd(r, bins = (5, 8, 4))
... H.shape, edges[0].size, edges[1].size, edges[2].size ((5, 8, 4), 6, 9, 5)
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.histogram
numpy.histogram2d
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them