Skip to content

RSDensityPlot has performance issues #598

@jordanmontt

Description

@jordanmontt

I have to see the distributions of this data. I have 100,000 times the value 1, 200,000 times the value 2 and 50,000 the value 3. With the current implementation of the density, I am obliged to pass an array that has 350,000 elements. If I do that, my image is frozen completely. The time is spent calculating the RSGaussianDensity

How to reproduce:

| densityPlot data |
data := OrderedCollection new.
100000 timesRepeat: [ data add: 1 ].
200000 timesRepeat: [ data add: 2 ].
50000 timesRepeat: [ data add: 3 ].
densityPlot := self data: data.
densityPlot bandwidth: 4.
^ densityPlot open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions