Version: 1.6.0 (using KDE KDE 3.5.3) OS: Linux Problem: the function: Zoom Max Spike Insensitive does not work properly in the zoom submenu. Steps to reproduce: generate some data file with sudden increases or decreases in data values use data wizard to load and plot the data file right click on the plot, and then choose zoom -> zoom max spike insensitive Results: the same result as choosing zoom -> zoom maximum ie. all data points are displayed. Expected results: Spikes, sudden increases or decreases data values should be excluded in the plot display.
Created attachment 23064 [details] this is a data file of random values in the range [-0.5, 0.5] with some spikes
The rule for the "zoom max spike insensitive" (as it is called in the context menu) or "spike insensitive auto scale" (as it is called in the plot dialog) is that any data point that varies from its previous data point by more than 7 times the standard deviation of this distribution shall be ignored for the auto-scaling. In the dataset attached to this bug report the "spikes" do not satisfy this exemption clause and so they are considered for the auto-scaling even in "zoom max spike insensitive" mode. Making one of the spikes signicantly larger (say a value of 50) will show the expected behaviour.
The documentation should inform the user of the criterion used. The relevant code can be found in: KstObject::UpdateType KstVector::internalUpdate(KstObject::UpdateType providerRC) in: kst/src/libkst/kstvector.cpp
Documentation needs to be revised
I changed the value of some data points to be around 55 with a sigma value of 5.7 for the whole distribution. 55 is more than 7 times of 5.7, but this zooming function still does not show its effect.
*** Bug has been marked as fixed ***.