Beispiel #1
0
 public double Normalize(double time)
 {
     if (!initialized)
     {
         return(-1);
     }
     return(Fitter.GlucoseUnit(time));
 }
Beispiel #2
0
        public double Coefficient()
        {
            List <double> predits = new List <double>();

            foreach (double x in Retention)
            {
                predits.Add(Fitter.GlucoseUnit(x));
            }
            double mean       = Guis.Average();
            double ss_total   = 0;
            double ss_residue = 0;

            for (int i = 0; i < predits.Count; i++)
            {
                ss_total   += (Guis[i] - mean) * (Guis[i] - mean);
                ss_residue += (Guis[i] - predits[i]) * (Guis[i] - predits[i]);
            }
            return(1.0 - ss_residue / ss_total);
        }
Beispiel #3
0
 public double Normalize(double time)
 {
     return(Fitter.GlucoseUnit(time));
 }