diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-05-04 17:19:18 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-05-15 19:51:04 +0200 |
commit | 80562aae00f048172b57fe3ad758dd91f9212b4b (patch) | |
tree | ede3a064d259bafccd3e78de7ab7ca10ab87b601 /sc/source/ui/inc/AnalysisOfVarianceDialog.hxx | |
parent | 8bfbfc06fefb418269734cfb17c70a5ae5a42d2a (diff) |
sc ANOVA: add "two factor" and rework "single factor" ANOVA
Change-Id: I8cfaa06019e641e0590065d8f6a3266ff82acb88
Diffstat (limited to 'sc/source/ui/inc/AnalysisOfVarianceDialog.hxx')
-rw-r--r-- | sc/source/ui/inc/AnalysisOfVarianceDialog.hxx | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/sc/source/ui/inc/AnalysisOfVarianceDialog.hxx b/sc/source/ui/inc/AnalysisOfVarianceDialog.hxx index 11608116e717..48ddafd9fc01 100644 --- a/sc/source/ui/inc/AnalysisOfVarianceDialog.hxx +++ b/sc/source/ui/inc/AnalysisOfVarianceDialog.hxx @@ -21,10 +21,33 @@ #include "StatisticsInputOutputDialog.hxx" +class FormulaTemplate; +class AddressWalkerWriter; + class ScAnalysisOfVarianceDialog : public ScStatisticsInputOutputDialog { private: - NumericField* mpAlpha; + enum AnovaFactor + { + SINGLE_FACTOR, + TWO_FACTOR + }; + + NumericField* mpAlphaField; + RadioButton* mpSingleFactorRadio; + RadioButton* mpTwoFactorRadio; + NumericField* mpRowsPerSampleField; + + DECL_LINK(FactorChanged, void*); + + AnovaFactor meFactor; + + void RowColumn(ScRangeList& rRangeList, AddressWalkerWriter& aOutput, + FormulaTemplate& aTemplate, OUString& sFormula, + GroupedBy aGroupedBy, ScRange* pResultRange); + + void AnovaSingleFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate); + void AnovaTwoFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate); public: ScAnalysisOfVarianceDialog( |