Example #1
0
 private Distribution HistogramOf(ObservableCollection<KeyValuePair<double, double>> target, Distribution distribution)
 {
     Dispatch(() =>
     {
         for (int i = 0; i < Math.Min(50, distribution.Histogram.BinCount); i++)
             target.Add(new KeyValuePair<double, double>(i, distribution.Histogram.ElementsInBin(i)));
     });
     return distribution;
 }
Example #2
0
 private string Fit(Distribution distribution)
 {
     return "Geometric Distribution (\u03BB(1 - \u03BB)^(x-1)): \u03BB = " + distribution.GeometricalFit.Parameter.Value();
 }