Exemple #1
0
 public override double GetRatio(IAnnotation si)
 {
     if (si.HasRatio())
     {
         return(si.GetQuantificationItem().Ratio);
     }
     else
     {
         return(0.0);
     }
 }
Exemple #2
0
 public override double GetSampleIntensity(IAnnotation si)
 {
     if (si.HasRatio())
     {
         return(si.GetQuantificationItem().SampleIntensity);
     }
     else
     {
         return(0.0);
     }
 }
Exemple #3
0
 public override bool HasRatio(IAnnotation si)
 {
     return(si.HasRatio());
 }
 public static void InitializeRatioEnabled(this IAnnotation ann)
 {
     ann.SetRatioEnabled(ann.HasRatio());
 }