Esempio n. 1
0
 public ProcessedPeak(I source, double xSquared, int supportingPeaksCount = 0) :
     base(source)
 {
     AdjPValue = double.NaN;
     XSquared  = xSquared;
     if (double.IsNaN(xSquared))
     {
         RTP = double.NaN;
     }
     else
     {
         RTP = ChiSqrd.ChiSqrdDistRTP(XSquared, 2 + (supportingPeaksCount * 2));
     }
 }
Esempio n. 2
0
 public ProcessedPeak(I source, double xSquared, int supportingPeaksCount) :
     base(source)
 {
     AdjPValue = double.NaN;
     XSquared  = xSquared;
     if (double.IsNaN(xSquared))
     {
         RTP = double.NaN;
     }
     else
     {
         RTP = ChiSqrd.ChiSqrdDistRTP(XSquared, 2 + (supportingPeaksCount * 2));
     }
     Classification  = new HashSet <Attributes>();
     SupportingPeaks = new List <SupportingPeak <I> >().AsReadOnly();
 }