public double Normalize(double time) { if (!initialized) { return(-1); } return(Fitter.GlucoseUnit(time)); }
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); }
public double Normalize(double time) { return(Fitter.GlucoseUnit(time)); }