diff options
author | Eike Rathke <erack@redhat.com> | 2018-12-21 00:32:21 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-12-21 00:33:14 +0100 |
commit | 6e8756a83549340f8c6b2c085936418241448c7b (patch) | |
tree | 1fcbb55f144f1f987750d6cf8533a8f8b7217d7c /sc | |
parent | 4a170d29eb35f288b1c66d810bb17ee0f3ddecc6 (diff) |
Rename PerformRandomSampling() to PerformRandomSamplingKeepOrder()
The implementation draws samples keeping the order of the
population data. That may not exactly be what is expected, but
might be offered as an option once random sampling in random order
is implemented.
Change-Id: Ic850d37a53e4a5f25f91c6fb6610d2244e70d897
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/StatisticsDialogs/SamplingDialog.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/SamplingDialog.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx index 3a097a08c479..1717baa1282e 100644 --- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx @@ -219,7 +219,7 @@ ScRange ScSamplingDialog::PerformPeriodicSampling(ScDocShell* pDocShell) return ScRange(mOutputAddress, ScAddress(outTab, outRow, outTab) ); } -ScRange ScSamplingDialog::PerformRandomSampling(ScDocShell* pDocShell) +ScRange ScSamplingDialog::PerformRandomSamplingKeepOrder(ScDocShell* pDocShell) { ScAddress aStart = mInputRange.aStart; ScAddress aEnd = mInputRange.aEnd; @@ -277,7 +277,7 @@ void ScSamplingDialog::PerformSampling() if (mpRandomMethodRadio->IsChecked()) { - aModifiedRange = PerformRandomSampling(pDocShell); + aModifiedRange = PerformRandomSamplingKeepOrder(pDocShell); } else if (mpPeriodicMethodRadio->IsChecked()) { diff --git a/sc/source/ui/inc/SamplingDialog.hxx b/sc/source/ui/inc/SamplingDialog.hxx index 9b66be6e82c3..eb5f7310b857 100644 --- a/sc/source/ui/inc/SamplingDialog.hxx +++ b/sc/source/ui/inc/SamplingDialog.hxx @@ -67,7 +67,7 @@ private: void GetRangeFromSelection(); void PerformSampling(); - ScRange PerformRandomSampling(ScDocShell* pDocShell); + ScRange PerformRandomSamplingKeepOrder(ScDocShell* pDocShell); ScRange PerformPeriodicSampling(ScDocShell* pDocShell); DECL_LINK( OkClicked, Button*, void ); |