public static double InverseTDistributionfun(int DF, double probability) { double Tinv; try { chart.Charting.Chart objChart = new chart.Charting.Chart(); Tinv = objChart.DataManipulator.Statistics.TDistribution(probability,DF, true); // value = c16 + dup * y30; } catch (Exception ex) { throw ex; } return Tinv; } [Microsoft.SqlServer.Server.SqlProcedure] public static double SQLCLRCsharpSP(int DF, double probability) { double _sum = 0.00; try { //if (type == "C") _sum = InverseTDistributionfun(DF, probability); //if (type == "A") //_sum = AlgTInvFun(probability, DF); } catch (Exception ex) { throw ex; } return _sum; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)