Commit Graph

59 Commits

Author SHA1 Message Date
37e6631cc5 remove whitespace
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-25 05:41:10 +02:00
0ab538885d fdo#79174: Use 3D address when the input and output are on different sheets.
Also some cleanup, mostly to avoid storing separate address convention object,
which is not really necessary.

Change-Id: Id3e104043f08b6786de2e91d69361557b83890f9
2014-05-30 15:00:26 -04:00
05d7608616 Label t-test and F-test for their respective dialogs.
Change-Id: I8afab424c051453005432c5291af49eb208dd22c
2014-05-21 22:14:33 -04:00
f79fa791ce Modify these stats dialogs to have OK and Cancel pair.
Change-Id: I5707aea9965e0d288d4a0e742f5d3cccf08107eb
2014-05-21 22:02:07 -04:00
8d54796bf1 enhance pass-by-ref plugin to detect large arguments
Detect arguments larger than 64 chars passed by value.

Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-20 11:17:22 +02:00
3db8d606d5 hrc and src files: squeeze multiple newlines
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done

Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-19 20:04:22 +02:00
9c3e819f06 move boost rng wrapper from sc to comphelper
so we can re-use it in other modules

Change-Id: I6057b1e955f745019fd48f91a754279df0f2b948
Reviewed-on: https://gerrit.libreoffice.org/9348
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-17 12:40:39 +00:00
2067d03f8a fdo#76718 Rounding for "fill > random number.." option
Change-Id: Idb4b6442be7ddb08875c6b59f54a887399385be7
2014-05-15 19:51:04 +02:00
858232e3c7 sc - statistics dialog: add more space between IDs
Change-Id: Ie503c2758e809712c99df6e53a02ac6e719dd036
2014-05-15 19:51:04 +02:00
80562aae00 sc ANOVA: add "two factor" and rework "single factor" ANOVA
Change-Id: I8cfaa06019e641e0590065d8f6a3266ff82acb88
2014-05-15 19:51:04 +02:00
80c61632a6 coverity#1210185 Uninitialized pointer field
Change-Id: I837094aaf9f04c189296417d77391e3f56604616
2014-04-29 11:40:26 +01:00
cb2488b4a6 coverity#1210186 Uninitialized pointer field
Change-Id: Ia74bb69ec3ed269d4a73633d470b2d3247741d58
2014-04-29 11:40:26 +01:00
9827b60c53 coverity#1210192 Uninitialized pointer field
Change-Id: I836170b6eb6edce6d9fb0827e40c72d9ab979f4f
2014-04-29 11:39:31 +01:00
15af2fddd6 sc: t-test - actually use "Alpha" parameter in formulas
Change-Id: I30399ed526ae4dc345f6e8de69bc0806017e7da7
2014-04-24 22:51:12 +02:00
a204a7ccba sc: Add newLine() convenience method to AddressWalker
And use the newLine() method in t-test and F-test.

Change-Id: I6372fe1fbc1f63bca56b110115732de96eb2afcf
2014-04-24 22:51:12 +02:00
2afa719d62 sc: F Test - externalize string ("Variable" label)
Change-Id: Id592d4becf63239a5f55e987fc2d00f3baa6fb52
2014-04-24 22:51:11 +02:00
377cca27df sc: t-test - refactor to row oriented output & externalise strings
Change-Id: I70b6d9ecc02aabf691b3606487e719885e6430fd
2014-04-24 22:51:11 +02:00
3ce1b10ba7 sc: Add F-Test to Statistics
Change-Id: I31281e863d82a211d7cca897f3e65a0ecfcb5f6b
2014-04-24 22:51:11 +02:00
e7f3d21ef0 No need for these to be statics.
Change-Id: Ia5fef528b7bddae3c6615d5064dcfcf02059f0ec
2014-04-18 22:48:08 +02:00
71c88f02a0 sc: prefer passing OUString by reference
Change-Id: I85e8823e872bf53182ce90576225e462edb1930a
2014-03-17 13:30:50 +02:00
97a7015daa remove unused code AddressWalker::pop()
Change-Id: Ia4ecb3f846cf6adfedb05a452fd8705c735022ad
2014-03-03 08:58:58 +02:00
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
a0bd814fb5 Speed up filling of random number generation over entire column.
Because nobody wants to wait forever...

Change-Id: Ie52bff944893b7e3fe9e7908be19d27c692fc1ea
2014-01-30 11:57:00 -05:00
cb9b6d94d8 No need to store the address detail object.
Just get one from the document when needed.

Change-Id: Id053c70c40e7a7580a3c5969af8d547ac1fcbf4e
2014-01-29 17:13:18 -05:00
9eba10af95 Consistency in naming.
Change-Id: Id9ac1ec0ec06defd570556f697f947997cb90b38
2014-01-29 17:13:18 -05:00
3275f11800 No need for static keywords when they are in anonymous namespace.
Change-Id: I481b98c1bc9b934661202dc8f97f1f01eae51cd7
2014-01-29 16:38:37 -05:00
12d7d3f368 coverity#1130485 Uninitialized scalar field
Change-Id: I18e90afe2c2425a0b6b65fdf46497aac8c755fcf
2014-01-28 11:29:17 +00:00
9570a27d3e resolved fdo#73555 compile statistics templates using English grammar
The statistics templates' formula expressions are setup using English
function names, so compile the resulting expressions using an English
grammar merged with the current address conventions.

Change-Id: I7c782a42d007daeaaf99463beb8aa580c05c7363
2014-01-13 18:08:52 +01:00
b104133abe Resolves: fdo#73137 undo name for 'Covariance' is different
Change-Id: I7e151ee99ef644090608fd861c9fae83c3206c1d
2013-12-30 11:37:00 +01:00
0b236154c3 Resolves: fdo#73138 undo name for 'Chi Squared' is different
Change-Id: Iedb01a2bd08f56befb351d00cebd0fb20b57def4
2013-12-30 10:54:50 +01:00
1d96c4a097 Add strings in statistics dialogs to the SRC/HRC file.
Change-Id: I8b66356a76586443fc5174c2af9c40bf2551b864
2013-12-01 12:36:26 +01:00
88bece824d Add t-test Statistics Dialog.
Change-Id: I6c2b478a4ce6976b5f8fe9cde3d8fbd309dff965
2013-11-30 18:00:57 +01:00
45e331cae6 Drop duplicate #include
Change-Id: Iea706d316d731fb57f7021e99a11d1487a2ee5b8
2013-11-29 09:51:37 +09:00
44b113fd38 WaE: unused variable 'aReferenceString' [loplugin]
Change-Id: I51c1aded0ef1ce7e99a49cf1eccb867002edaa70
2013-11-12 09:16:25 +02:00
b5350d7bea WaE: unused variable 'aFormulaString' [loplugin]
Change-Id: Ic72de4b469cfe84638b1a15b413d60286e738000
2013-11-12 09:15:42 +02:00
1b4c3fad81 Simplification and better output of statistics dialogs.
Change-Id: Ia21bb07f7721a7697807f8ee98706bd3fc136653
2013-11-11 23:22:33 +01:00
515a502437 Add statistics dialog for calculation of moving average.
Change-Id: Iaa481a2d8aff271e8a8350b707e1f444f8d36167
2013-11-11 23:22:32 +01:00
f4569ff5ee Iterators for data ranges and data cells.
This is needed to make data and iteration independent from the
data orientation (either columns or rows).

Change-Id: I03d0fca939ba9b051832668d229e4961c097add6
2013-11-11 23:22:32 +01:00
2f823d458d Add tools to simplyfy adding formulas and cell navigation
TableFillingAndNavigationTools were added to StatisticsDialogs which
include FormulaTemplate and AddressWalkerWriter.
FormulaTemplate simplyfies creting formulas and AddressWalkerWriter
simplyfies navigating cells with relative address navigation and
adding content (formulas, values, string) to cells.

Change-Id: I32ecb4013f51bda9c8d0bf9f06b9f9dfd4da6def
2013-11-11 23:22:31 +01:00
e08543cfb2 New statistics function: Exponential Smoothing
Add initial implementation of exponential smoothing.

Change-Id: Id234aec6a0efece2ce8144f22359cf034256c40b
2013-11-11 23:22:31 +01:00
b3904220ef Groupedby for ANOVA and "Descriptive Statistics"
Move the functionallity to superclass, adjust UI

Change-Id: I9770206386aa6d9caaf2d832d4744ac488e3190b
2013-11-11 23:22:30 +01:00
aaa689d94d Add GroupedBy: Columns/Rows to Correlation and Covariance.
Change-Id: I7bb3b7151abda8e977cbdbec2d0c356f049d5af2
2013-11-11 23:22:30 +01:00
4eb1aa5b77 use something different than the SID_ prefix confused with SlotID
Change-Id: I6e87b1288d05c698e7c71b28ca1c6d503b25a332
2013-10-30 01:27:59 +01:00
8df6531b26 moved StatisticsDialogs string IDs from globstr to RID_STATISTICS_DLGS
They aren't needed in globstr and weren't in RID_GLOBSTR anyway but in
global STR_START+... range possibly sharing IDs with something else
after STR_END of sc.hrc ...

Change-Id: I1f9f8e9e1748afdd00ceb3106ec405456415ee21
2013-10-30 01:27:59 +01:00
2304beaca3 convert sc/source/ui/StatisticsDialogs/*.cxx from String to OUString
Change-Id: I2816b3e59a1de8c0057fd0d4211004465adc2cfc
2013-10-08 10:03:13 +02:00
74929bba73 Related: fdo#38838 remove UniString::ToUpperAscii
things got a little out of hand and I ended up
converting quite a bit of calc to OUString

Change-Id: I056326d37ffefa8c120cb2e564d166dd9f20f216
2013-08-30 11:39:01 +01:00
8e4f4fb541 fdo#66477 Add correlation and covariance to Calc.
Change-Id: I877199aa9c0bb275fa678488548c7e6797c0eefc
2013-07-28 11:49:53 +02:00
92442a9276 WaE: default constructor could not be generated (because of const member(s))
The aCalculationNameId member doesn't need to be const, the data in
the lclCalcDefinitions array (which is the only use for the
StatisticCalculation struct) will be const anyway because the array is
const.

(The aFormula member isn't const, it's a pointer to const chars;))

Change-Id: I8b2549009d72a4b7df992651597247dff2c45be9
2013-07-25 13:09:05 +03:00
0153ea7e11 Fix compiler errors and warnings..
Change-Id: Id35cdec02c7a5175e1b429b723679541292ddfb3
2013-07-23 23:00:48 +02:00
ba17605d5e Add ANOVA (analysis of variance) calculation to Statistics.
Currently supported calculation is one factor ANOVA calculation.

Additionally refactor "descriptive statistics" and extract common
functionallity with ANOVA into StatisticsInputOutput class.

Change-Id: Ib9c3083019058c63738b3e92097411ba1b428648
2013-07-23 20:52:45 +02:00