예제 #1
0
 public void VisitReference(ReferenceTo refTo)
 {
     throw new NotSupportedException("Global variables cannot be references.");
 }
예제 #2
0
 public void VisitReference(ReferenceTo refTo)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public bool VisitReference(ReferenceTo refTo)
 {
     return(Find(refTo.Referent));
 }
예제 #4
0
 public int VisitReference(ReferenceTo ptr)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 public Expression VisitReference(ReferenceTo refTo)
 {
     return(refTo.Referent.Accept(this));
 }
예제 #6
0
 public void VisitReference(ReferenceTo refTo)
 {
     throw new NotImplementedException();
 }
예제 #7
0
 public string VisitReference(ReferenceTo refTo)
 {
     return(DefaultPrefix);
 }
예제 #8
0
 public DataType VisitReference(ReferenceTo refTo)
 {
     refTo.Referent = refTo.Referent.Accept(this);
     return(refTo);
 }
예제 #9
0
 public IEnumerable <WorkItem> VisitReference(ReferenceTo refTo)
 {
     throw new NotImplementedException();
 }
예제 #10
0
 public Expression VisitReference(ReferenceTo refTo)
 {
     throw new NotImplementedException();
 }
예제 #11
0
 void ReferenceTo(ReferenceTo r)
 {
     WriteSpace();
     fmt.Write('&');
     TypeQualifierList(r);
 }
예제 #12
0
 public SerializedType VisitReference(ReferenceTo refTo)
 {
     throw new NotImplementedException();
 }
예제 #13
0
        private double[] LevelProfileData(ReferenceTo mode)
        {
            double[] leveledData = new double[rawData.Length];
            // calculate mode dependend parameters
            switch (mode)
            {
            case ReferenceTo.None:
                break;

            case ReferenceTo.First:
                intercept = FirstValue;
                break;

            case ReferenceTo.Last:
                intercept = LastValue;
                break;

            case ReferenceTo.Center:
                intercept = CenterValue;
                break;

            case ReferenceTo.Minimum:
                intercept = MinimumValue;
                break;

            case ReferenceTo.Maximum:
                intercept = MaximumValue;
                break;

            case ReferenceTo.Average:
                intercept = AverageValue;
                break;

            case ReferenceTo.Central:
                intercept = CentralValue;
                break;

            case ReferenceTo.Bias:
                intercept = BiasValue;
                break;

            case ReferenceTo.Line:
            case ReferenceTo.LinePositive:
                intercept = FirstValue;
                slopeX    = (LastValue - FirstValue) / (rawData.Length - 1);
                break;

            case ReferenceTo.Lsq:
            case ReferenceTo.LsqPositive:
                FitLsqLine();
                break;
            }
            // now level the data
            for (int i = 0; i < rawData.Length; i++)
            {
                leveledData[i] = sign * (rawData[i] - (intercept + (slopeX * (double)i)));
            }
            // check if positive values were asked for
            if (mode == ReferenceTo.LinePositive || mode == ReferenceTo.LsqPositive)
            {
                double min = leveledData.Min();
                for (int i = 0; i < leveledData.Length; i++)
                {
                    leveledData[i] = leveledData[i] - min;
                }
            }
            return(leveledData);
        }
예제 #14
0
 void ReferenceTo(ReferenceTo r)
 {
     WriteSpace();
     Formatter.Write('&');
     TypeQualifierList(r);
 }
예제 #15
0
 public void VisitReference(ReferenceTo refTo)
 {
     throw new NotSupportedException("Global variables cannot be references.");
 }