Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combine l_moment, l_ratio and l_stats #364

Open
jorenham opened this issue Dec 4, 2024 · 0 comments
Open

combine l_moment, l_ratio and l_stats #364

jorenham opened this issue Dec 4, 2024 · 0 comments
Labels
breaking change Backwards incompatible enhancement New feature or request

Comments

@jorenham
Copy link
Owner

jorenham commented Dec 4, 2024

Introduce a new function (e.g. l_moments or just moments) that accepts max_order: int, / and kwargs first_order: int = 1 and ratio: bool = True, always returns an xp.Array (np.ndarray by default) of shape (max_order - first_order + 1,) and real floating dtype (dtype: type[xp.floating] = xp.float64), where ratio=True is like l_stats and ratio=False like l_moment.

Deprecate l_moment, l_ratio and l_stats on lmo<1, and remove them in the v1.0 release.

The current l_{loc,variation,scale,skew,kurt[osis]} should be modified to autonomically calculate these statistics, preferably as an array-api compatible gufunc-like (potentially delegating to a numba gufunc).


The same can be done with theoretical ones in lmo.theoretical, and similarly in lmo.diagnostic.

@jorenham jorenham added enhancement New feature or request breaking change Backwards incompatible labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Backwards incompatible enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant