summaryrefslogtreecommitdiff
path: root/sc/source/ui/StatisticsDialogs
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-12-21 00:32:21 +0100
committerEike Rathke <erack@redhat.com>2018-12-21 00:33:14 +0100
commit6e8756a83549340f8c6b2c085936418241448c7b (patch)
tree1fcbb55f144f1f987750d6cf8533a8f8b7217d7c /sc/source/ui/StatisticsDialogs
parent4a170d29eb35f288b1c66d810bb17ee0f3ddecc6 (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/source/ui/StatisticsDialogs')
-rw-r--r--sc/source/ui/StatisticsDialogs/SamplingDialog.cxx4
1 files changed, 2 insertions, 2 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())
{