package com.imsl.test.example.stat; import com.imsl.stat.InvCdf; /** *

* Evaluates the inverse CDF for the beta and chi-squared random variables. *

* * @see Code * @see Output */ public class InvCdfEx1 { public static void main(String args[]) { // Inverse Beta double x = .5; double pin = 12.; double qin = 12.; double result = InvCdf.beta(x, pin, qin); System.out.println("InvCdf.beta(.5, 12., 12.) is " + result); // Inverse Chi double prob = .99; int n = 2; result = InvCdf.chi(prob, n); System.out.println("InvCdf.chi(.99, 2) is " + result); } }