Bug 155856 - zoom max spike insensitive doesn't work properly
Summary: zoom max spike insensitive doesn't work properly
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: documentation (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Yiwen Mao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-15 21:00 UTC by Yiwen Mao
Modified: 2008-01-16 23:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
this is a data file of random values in the range [-0.5, 0.5] with some spikes (3.59 KB, text/plain)
2008-01-15 21:04 UTC, Yiwen Mao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yiwen Mao 2008-01-15 21:00:23 UTC
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.
Comment 1 Yiwen Mao 2008-01-15 21:04:05 UTC
Created attachment 23064 [details]
this is a data file of random values in the range [-0.5, 0.5] with some spikes
Comment 2 Andrew Walker 2008-01-16 20:13:34 UTC
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.
Comment 3 Andrew Walker 2008-01-16 20:49:28 UTC
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
Comment 4 Andrew Walker 2008-01-16 20:52:47 UTC
Documentation needs to be revised
Comment 5 Yiwen Mao 2008-01-16 23:09:47 UTC
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.
Comment 6 Yiwen Mao 2008-01-16 23:55:29 UTC
*** Bug has been marked as fixed ***.