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