public static double PDFMethodAlphaOne(double x, double beta, double abe, ref object tempStorage, double precision) { if (0 == beta) { return(1 / (Math.PI * (1 + x * x))); } else { var inc = new Aeq1I(x, beta, abe); if (inc.IsMaximumLeftHandSide()) { return(inc.Integrate(ref tempStorage, precision)); } else { var dec = new Aeq1D(x, beta, abe); return(dec.Integrate(ref tempStorage, precision)); } } }
public static double PDFMethodAlphaOne(double x, double beta, double abe, ref object tempStorage, double precision) { if (0 == beta) { return 1 / (Math.PI * (1 + x * x)); } else { Aeq1I inc = new Aeq1I(x, beta, abe); if (inc.IsMaximumLeftHandSide()) { return inc.Integrate(ref tempStorage, precision); } else { Aeq1D dec = new Aeq1D(x, beta, abe); return dec.Integrate(ref tempStorage, precision); } } }