https://bugs.kde.org/show_bug.cgi?id=474732

            Bug ID: 474732
           Summary: Number of generated values from generate data with
                    stdev or similar column statistic functions seems to
                    be wrong
    Classification: Applications
           Product: LabPlot2
           Version: 2.10.0
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: alexander.se...@web.de
          Reporter: pcfreak...@gmail.com
  Target Milestone: ---

STEPS TO REPRODUCE
1. Create column with numbers in it
2. Create second column in another table
3. For this second column, use Generate Data and then the function stdev(x),
where for x the column from step 1 is used

OBSERVED RESULT
The second column contains exactly as many entries as there are in the first
column

EXPECTED RESULT
In the case of statistics, e.g. stdev, or any other function which returns a
single number for a complete column, the amount of entries in the second column
should depend on the size of this second column/table, not on the amount of
entries the statistic is based on i.e. in this case the first column.

ADDITIONAL INFORMATION
As another example, consider having a data set with e.g. 100 entries. I would
like to use their standard deviation as error in another data set with e.g. 200
entries. Using the generate functionality, however, only the first 100 rows for
the error are filled with the standard deviation, although I would expect it to
fill my whole column, in this case all 200 entries (or whatever the column
length is set to).

Should the other data set only contain, for example, 50 entries, my table gets
unnecessarily expanded to fit 100 values for the error, even though i just need
50. Manually reducing the table size works until the first data set which I
want to use the standard deviation of gets somehow changed, then the table with
my 50 entries is expanded once again (given I mark the auto update checkbox in
the generate data dialog).

In this second case, this bug is just a bit annoying but in the first case, I
would be missing error values which is problematic.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to