Exemplo n.º 1
0
 public IrregularQuantiles(double[] probabilities, double[] quantiles)
 {
     AssertIncreasing(probabilities, nameof(probabilities));
     AssertInRange(probabilities, nameof(probabilities));
     OuterQuantiles.AssertNondecreasing(quantiles, nameof(quantiles));
     OuterQuantiles.AssertFinite(quantiles, nameof(quantiles));
     this.probabilities = probabilities;
     this.quantiles     = quantiles;
 }
Exemplo n.º 2
0
 public InnerQuantiles(double[] quantiles)
 {
     if (quantiles == null)
     {
         throw new ArgumentNullException(nameof(quantiles));
     }
     if (quantiles.Length == 0)
     {
         throw new ArgumentException("quantiles array is empty", nameof(quantiles));
     }
     OuterQuantiles.AssertFinite(quantiles, nameof(quantiles));
     OuterQuantiles.AssertNondecreasing(quantiles, nameof(quantiles));
     this.quantiles = quantiles;
     lowerGaussian  = GetLowerGaussian(quantiles);
     upperGaussian  = GetUpperGaussian(quantiles);
 }