@@ -0,0 +1,875 @@
+public class PDF%7B%0A%0A%09double x = 0;%0A%09double value = 0;%0A%09boolean a;%0A%0A%09public PDF(double input, boolean t)%7B%0A%09%09a = t;%0A%09%09if(a)%7B%0A%09%09%09x = input;%0A%09%09%09value = pdf(input);%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09value = input;%0A%09%09%09x = pdfInverse(input);%0A%09%09%7D%09%0A%09%7D%0A%09%0A%09public String toString()%7B%0A%09%09String ret = %22PDF(%22 + x + %22) = %22 + value;%0A%09%09return ret;%0A%09%7D%0A%0A%09public double getValue()%7B%0A%09%09return value;%0A%09%7D%0A%0A%09public void setValue(double val)%7B%0A%09%09value = val;%0A%09%09x = pdfInverse(val);%0A%09%7D%0A%0A%09public double getX()%7B%0A%09%09return x;%0A%09%7D%0A%09%09%0A%09public void setX(double val)%7B%0A%09%09x = val;%0A%09%09value = pdf(val);%0A%09%7D%0A%0A%09public static double pdf(double in)%7B%0A%09%09double fact = 1.0 / Math.sqrt(2.0 * Math.PI);%0A                double exp = Math.exp(-0.5 * Math.pow(in, 2.0));%0A                return (fact * exp);%0A%09%7D%0A%0A%09public static double pdfInverse(double pdf)%7B%0A                return Math.sqrt(-2 * Math.log(Math.sqrt(2 * Math.PI) * pdf));%0A        %7D%0A%7D%09%0A

Create PDF.java