Esempio n. 1
0
 public virtual void SaveToAnnotation(IAnnotation ann, LinearRegressionRatioResult lrrr)
 {
     ann.SetEnabled(true);
     ann.Annotations[this.RatioKey]     = lrrr;
     ann.Annotations[this.ReferenceKey] = string.Format("{0:0.0}", lrrr.ReferenceIntensity);
     ann.Annotations[this.SampleKey]    = string.Format("{0:0.0}", lrrr.SampleIntensity);
     ann.Annotations[this.PValueKey]    = string.Format("{0:0.##E+0}", lrrr.PValue);
 }
Esempio n. 2
0
 public virtual void RemoveFromAnnotation(IAnnotation ann)
 {
     ann.SetEnabled(false);
     ann.Annotations.Remove(this.RatioKey);
     ann.Annotations.Remove(this.ReferenceKey);
     ann.Annotations.Remove(this.SampleKey);
     ann.Annotations.Remove(this.PValueKey);
 }