public CohensSetupVM(ExcelDataSet excelDataSet, CohensSettings cohensSettings)
        {
            _cohensSettings = cohensSettings;

            AvailableFirstVariables =
                new ObservableCollection<string>(excelDataSet.TrialDataRows[0].Values.Select(p => p.ToString()));
            AvailableFirstVariables.Insert(0, string.Empty);

            AvailableSecondVariables =
                new ObservableCollection<string>(excelDataSet.TrialDataRows[0].Values.Select(p => p.ToString()));
            AvailableSecondVariables.Insert(0, string.Empty);

            AvailableFilterVariables =
                new ObservableCollection<string>(excelDataSet.TrialDataRows[0].Values.Select(p => p.ToString()));
            AvailableFilterVariables.Insert(0, string.Empty);
        }
 public CohensResultExporter(CohensSettings cohensSettings)
 {
     _cohensSettings = cohensSettings;
 }
 public CohensCalculator(ExcelDataSet excelDataSet, CohensSettings cohensSettings)
 {
     _excelDataSet = excelDataSet;
     _cohensSettings = cohensSettings;
 }
        private void OnCalculateCohens()
        {
            var settings = new CohensSettings();
            var effectSizeCalculator = new CohensCalculator(_excelDataSet, settings);
            var resultExporter = new CohensResultExporter(settings);
            var cohensSetupVM = new CohensSetupVM(_excelDataSet, settings);

            ShowEffectSizeWindow(effectSizeCalculator, resultExporter, cohensSetupVM);
        }
        private List<double> GetFilterVariableValues(CohensSettings cohensSettings, ExcelDataSet excelDataSet)
        {
            List<double> filterVariableValues = null;
            if (!string.IsNullOrEmpty(cohensSettings.SelectedFilterVariable))
            {
                filterVariableValues = GetVariableValues(cohensSettings.SelectedFilterVariable, excelDataSet);
            }

            return filterVariableValues;
        }