histograms.pyi
1 from collections.abc import Sequence 2 from typing import ( 3 Literal as L, 4 Any, 5 SupportsIndex, 6 ) 7 8 from numpy._typing import ( 9 NDArray, 10 ArrayLike, 11 ) 12 13 _BinKind = L[ 14 "stone", 15 "auto", 16 "doane", 17 "fd", 18 "rice", 19 "scott", 20 "sqrt", 21 "sturges", 22 ] 23 24 __all__: list[str] 25 26 def histogram_bin_edges( 27 a: ArrayLike, 28 bins: _BinKind | SupportsIndex | ArrayLike = ..., 29 range: None | tuple[float, float] = ..., 30 weights: None | ArrayLike = ..., 31 ) -> NDArray[Any]: ... 32 33 def histogram( 34 a: ArrayLike, 35 bins: _BinKind | SupportsIndex | ArrayLike = ..., 36 range: None | tuple[float, float] = ..., 37 density: bool = ..., 38 weights: None | ArrayLike = ..., 39 ) -> tuple[NDArray[Any], NDArray[Any]]: ... 40 41 def histogramdd( 42 sample: ArrayLike, 43 bins: SupportsIndex | ArrayLike = ..., 44 range: Sequence[tuple[float, float]] = ..., 45 density: None | bool = ..., 46 weights: None | ArrayLike = ..., 47 ) -> tuple[NDArray[Any], list[NDArray[Any]]]: ...