Skip to content

speed of ecdf #964

@andferrari

Description

@andferrari

ecdf uses a sortperm to sort the vector of samples given in X

ord = sortperm(X)
ECDF(X[ord], isempty(weights) ? weights : Weights(weights[ord]))

But sortperm(X) is much slower than sort(X).
Why not use a simple sort?

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