Exemple #1
0
        public static AnovaRowType[] GetAnovaRowTypes()
        {
            AnovaRowType[] retValue = new AnovaRowType[3]
            {
                AnovaRowType.Regression,
                AnovaRowType.Residual,
                AnovaRowType.Total
            };

            return retValue;
        }
        public AnovaRow this[AnovaRowType type]
        {
            get
            {
                AnovaRow retValue;
                switch (type)
                {
                    case AnovaRowType.Regression:
                        retValue = this.Regression;
                        break;

                    case AnovaRowType.Residual:
                        retValue = this.Residual;
                        break;

                    case AnovaRowType.Total:
                        retValue = this.Total;
                        break;

                    default:
                        throw new EnumerationValueUnhandledException(type);
                }

                return retValue;
            }
            set
            {
                switch (type)
                {
                    case AnovaRowType.Regression:
                        this.Regression = value;
                        break;

                    case AnovaRowType.Residual:
                        this.Residual = value;
                        break;

                    case AnovaRowType.Total:
                        this.Total = value;
                        break;

                    default:
                        throw new EnumerationValueUnhandledException(type);
                }
            }
        }
Exemple #3
0
 public AnovaRow(AnovaRowType type)
 {
     this.Type = type;
 }