コード例 #1
0
        public override string GetCommandLineArguments()
        {
            ArgumentFormatter argFormatter = new ArgumentFormatter();
            StringBuilder     arguments    = new StringBuilder();

            arguments.Append(" " + "UserValues");                                                             //4
            arguments.Append(" " + argFormatter.GetFormattedArgument(Means, false));                          //5
            arguments.Append(" " + argFormatter.GetFormattedArgument(VariabilityEstimate.ToString(), false)); //6
            arguments.Append(" " + argFormatter.GetFormattedArgument(Variance));                              //7
            arguments.Append(" " + argFormatter.GetFormattedArgument(StandardDeviation));                     //8
            arguments.Append(" " + argFormatter.GetFormattedArgument(Significance, false));                   //9

            if (PlottingRangeType == PlottingRangeTypeOption.SampleSize)
            {
                arguments.Append(" " + "SampleSize");                                      //10
                arguments.Append(" " + argFormatter.GetFormattedArgument(SampleSizeFrom)); //11
                arguments.Append(" " + argFormatter.GetFormattedArgument(SampleSizeTo));   //12
            }
            else
            {
                arguments.Append(" " + "PowerAxis");                                  //10
                arguments.Append(" " + argFormatter.GetFormattedArgument(PowerFrom)); //11
                arguments.Append(" " + argFormatter.GetFormattedArgument(PowerTo));   //12
            }

            arguments.Append(" " + argFormatter.GetFormattedArgument(GraphTitle, false)); //13

            return(arguments.ToString().Trim());
        }
コード例 #2
0
        public override IEnumerable <Argument> GetArguments()
        {
            List <Argument> args = new List <Argument>();

            args.Add(ArgumentHelper.ArgumentFactory(nameof(Means), Means));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(VariabilityEstimate), VariabilityEstimate.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(Variance), Variance));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(StandardDeviation), StandardDeviation));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(Significance), Significance));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(PlottingRangeType), PlottingRangeType.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SampleSizeFrom), SampleSizeFrom));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SampleSizeTo), SampleSizeTo));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(PowerFrom), PowerFrom));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(PowerTo), PowerTo));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(GraphTitle), GraphTitle));

            return(args);
        }