HorridTom / autospc

GNU General Public License v3.0
3 stars 0 forks source link

Add test for floating median line #129

Closed HorridTom closed 4 months ago

Comfortti commented 4 months ago

@HorridTom when possible, may I get clarification about when the median line calculation/plotting get triggered?

HorridTom commented 4 months ago

@Comfortti Thanks for this, good question!

The plot_auto_SPC function has two arguments that are relevant here: floatingMedian and floatingMedian_n

If floatingMedian is "yes", then a median of the final floatingMedian_n points should be displayed

If floatingMedian is "auto", then a median should be plotted if at least one point of the final floatingMedian_n points is part of a shift (rule 2) break, and not otherwise. If plotted, again the median should be of the final floatingMedian_n points.

If floatingMedian is not "yes" or "auto", no median should be plotted.

Hope this makes sense, if not let me know!