-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
895 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,57 @@ | ||
from scipy._typing import Untyped | ||
from typing import Any, Literal, TypeAlias | ||
from typing_extensions import Self | ||
|
||
import numpy as np | ||
import numpy.typing as npt | ||
from . import distributions as distributions | ||
from ._typing import BaseBunch | ||
|
||
__all__ = ["_find_repeats", "siegelslopes", "theilslopes"] | ||
|
||
_Method: TypeAlias = Literal["hierarchical", "separate"] | ||
|
||
class SiegelslopesResult(BaseBunch[float, float]): | ||
def __new__(_cls, slope: float, intercept: float) -> Self: ... | ||
def __init__(self, /, slope: float, intercept: float) -> None: ... | ||
@property | ||
def slope(self, /) -> float: ... | ||
@property | ||
def intercept(self, /) -> float: ... | ||
|
||
TheilslopesResult: Untyped | ||
SiegelslopesResult: Untyped | ||
class TheilslopesResult(BaseBunch[np.float64, np.float64, np.float64, np.float64]): | ||
def __new__( | ||
_cls, | ||
slope: np.float64, | ||
intercept: np.float64, | ||
low_slope: np.float64, | ||
high_slope: np.float64, | ||
) -> Self: ... | ||
def __init__( | ||
self, | ||
/, | ||
slope: np.float64, | ||
intercept: np.float64, | ||
low_slope: np.float64, | ||
high_slope: np.float64, | ||
) -> None: ... | ||
@property | ||
def slope(self, /) -> np.float64: ... | ||
@property | ||
def intercept(self, /) -> np.float64: ... | ||
@property | ||
def low_slope(self, /) -> np.float64: ... | ||
@property | ||
def high_slope(self, /) -> np.float64: ... | ||
|
||
def theilslopes(y, x: Untyped | None = None, alpha: float = 0.95, method: str = "separate") -> Untyped: ... | ||
def siegelslopes(y, x: Untyped | None = None, method: str = "hierarchical") -> Untyped: ... | ||
def _find_repeats(arr: npt.NDArray[np.number[Any]]) -> tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]]: ... | ||
def siegelslopes( | ||
y: npt.ArrayLike, | ||
x: npt.ArrayLike | None = None, | ||
method: _Method = "hierarchical", | ||
) -> SiegelslopesResult: ... | ||
def theilslopes( | ||
y: npt.ArrayLike, | ||
x: npt.ArrayLike | None = None, | ||
alpha: float | np.floating[Any] = 0.95, | ||
method: _Method = "separate", | ||
) -> TheilslopesResult: ... |
Oops, something went wrong.