[Kst] [Bug 110734] Ability to mask datapoints for fits and other operations etc.

netterfield@astro.utoronto.ca netterfield at astro.utoronto.ca
Wed Sep 14 12:52:13 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=110734         




------- Additional Comments From netterfield astro utoronto ca  2005-09-14 12:52 -------
Here is my proposed solution:

Vectors gain flag fields with something like the following methods:
  bool hasFlag()
  double flag(i): Non-zero means ignore.
  double interpFlag(int i, int ns): flag for use with interpolate(i,ns)
  doubke *flagV(): return pointer to raw flag vector; NULL if !hasFlag().
  clearFlag(): deletes the _flag and clears hasFlag().
  void setFlagV(KstVector V);
  void setFlagV(int *F);
  void setFlag(int i, int flag);

The calculation of all automatic statistics from a vector are only calculated for the unflagged data.  If flag is cleared (!hasFlag()) then there should be no speed impact and behavior is as it is now.

Kst2DPlot gains a new mouse mode for flagging data.  It will work the same as zoom modes, except the selected data is flagged, rather than zoomed. It should be possible to decide if you are flagging X data points or Y data points or both.  Default will be to flag Y only. There will be an RMB entry for clearFlags, and for "select only visible".  These will also exist in the zoom mode rmb menu.

Kst2DPlot gains the ability (with configuration in the plot dialog) to indicate flagged data (as different colour, different line type, or not drawn at all).  The X vector and Y vector flags will be ORed.

Vector Dialogs gain a combo for associating another vector with the flag.  This allows flagging with an equation, or the output of a plugin.

The double[] arrays that KstPlugins send to plugins only contain un-flagged data.  A checkbox will be provided in the dialog to select whether flags from equal length vectors should be ored before applying.  

Eventually a spreadsheet mode will be provided which will allow direct access to the flag vectors for hand editing.


More information about the Kst mailing list