//========================================================================== /// <summary> /// /// </summary> /// <param name="sAggreg"></param> /// <returns></returns> //========================================================================== public AggregType parseAggreg(string sAggreg) { AggregType result = AggregType.aggNone; sAggreg = sAggreg.ToLower(); if (sAggreg == "stddev") { result = AggregType.aggStdDev; } if (sAggreg == "median") { result = AggregType.aggMedian; } if ((sAggreg == "total") || (sAggreg == "sum")) { result = AggregType.aggSum; } if ((sAggreg == "ave") || (sAggreg == "average") || (sAggreg == "mean")) { result = AggregType.aggAve; } if ((sAggreg == "max") || (sAggreg == "maximum")) { result = AggregType.aggMax; } if ((sAggreg == "min") || (sAggreg == "minimum")) { result = AggregType.aggMin; } return(result); }
//============================================================================== /// <summary> /// /// </summary> /// <param name="sVariableName"></param> /// <param name="aValue"></param> /// <param name="iParentID"></param> /// <param name="iIndex"></param> /// <param name="Aggreg"></param> /// <param name="iDecPlaces"></param> /// <returns></returns> //============================================================================== protected virtual int defineVariable(string sVariableName, TDDMLValue aValue, int iParentID, int iIndex, AggregType Aggreg, int iDecPlaces) { int result; if (FColumns.Count < 1) { result = -1; } else { result = FColumns.Count; } return(result); }