RANE
(RANE)
March 19, 2025, 9:49am
1
Hello I have a list of data that generates a very noisy graph.
I need this graph to be something like the purple line with the starting and the end values the same and the min and max values also the same.
Does anyone have a solution for this???
Rane
Smooth data graph.gh (401.2 KB)
This smoothing function is too simple and depends on a manual slider (though something is needed to control the smoothing) .
Smooth data graph_2025Mar19a.gh (407.9 KB)
P.S. Plotting your data, I see a a pattern I had missed. Likely relevant to your smoothing effort
@Joseph_Oster solution seems a good one, but data is a bit biased by the fact that values are all negative also on parts where there were positive.
You can do quite the same with a sliding window and analyse, min max and deduce the mean
Smooth data graph.gh (408.7 KB)
1 Like
Willem
(Willem Derks)
March 19, 2025, 2:46pm
5
Hi,
Comparing the graphs on the image I’d say the smooth result is not very accurate but maybe I’m missing something.
ThomasE
(Thomas Evans)
March 19, 2025, 3:16pm
6
Simplifying and smoothing seems very precise but heavy.
The problem with smoothing polylines is that the ends in this case are not crucial and should not be anchored…
Smooth data graph_te.gh (408.8 KB)
1 Like
Puttering…
This is more of a data picker than smoother, though I thought at some point it can do both.
Smooth data graph_2025Mar19c.gh (411.8 KB)
P.S. Version ‘d’ (below) is the same as version ‘c’ but without the UI features.
Smooth data graph_2025Mar19d.gh (402.3 KB)
have you consider the BLUR NUMBERS component? you may need a really high number of iteration in this case, but this is what you are trying to do in my opinion (it’s like during the covid, when the data of infected people had spikes every weekend but was averaged over some days to get a smooth graph)
Smooth data graph (1).gh (403.8 KB)
2 Likes
I’ve never noticed Blur Numbers but it appears to work well, esp. when the ‘Iterations ’ input is increased to 100K.
Another component on the same on the same ‘Maths | Util’ tab also looks interesting: Smooth Numbers
Smooth numbers is to set a delay so when the input change, the value changes over time and not instantly (right click on it)