Skip to content

Add all interpolation methods to quantile (and percentile) #2607

@matthewfeickert

Description

@matthewfeickert

Description

At the moment, only the "linear" interpolation method from numpy.quantile and by extension numpy.percentile are implemented (as noted in Issue #70)

https://github.com/google/jax/blob/1cf708ea77fae0fc1418e0b944f0115646f7f2ec/jax/numpy/lax_numpy.py#L3446-L3447

It would be useful to also have the "nearest" interpolation method, along with the others ("lower", "higher", "midpoint") implemented as well.

cc @lukasheinrich @kratsg

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions welcomeThe JAX team has not prioritized work on this. Community contributions are welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions