Exemple #1
0
 /// <inheritdoc />
 public override double LeftProbability(double x)
 {
     if (x < xSupport.LeftEndpoint)
     {
         return(0.0);
     }
     else if (x > xSupport.RightEndpoint)
     {
         return(1.0);
     }
     else
     {
         ComputeEffectiveBin(x, out int k0, out double k1);
         return(d.LeftExclusiveProbability(k0) + k1 * d.ProbabilityMass(k0));
     }
 }
Exemple #2
0
 /// <inheritdoc />
 public override double LeftProbability(double x)
 {
     if (x < xSupport.LeftEndpoint)
     {
         return(0.0);
     }
     else if (x > xSupport.RightEndpoint)
     {
         return(1.0);
     }
     else
     {
         int ki; double kf; ComputeEffectiveBin(x, out ki, out kf);
         return(d.LeftExclusiveProbability(ki) + kf * d.ProbabilityMass(ki));
     }
 }