Skip to content

Function to discretize distributions? #1992

@GBarnsley

Description

@GBarnsley

See here for an R implementation of this idea.
Is there space for a similar function in Distributions?

I've put together a package built on top of Distributions here that does this.
Roughly, it converts univariate distributions into a DiscreteNonParameteric based on evenly (or custom) intervals.
I find this useful for modelling purposes, i.e. if you are modelling in discrete time, often a DiscreteNonParameteric is faster and more convenient than binning continuous outputs.

Wanted to check if this would be better as a utility in Distributions? Might need to take a different approach to my packge, which has a strong dependancy on IntervalArithmetic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions