ObjectProfile / Roassal3

The Roassal Visualization Engine
MIT License
95 stars 52 forks source link

RSDensityPlot has performance issues #598

Open jordanmontt opened 9 months ago

jordanmontt commented 9 months ago

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.
akevalion commented 8 months ago

Moved to pharo-graphics/Roassal