package com.imsl.test.example.stat.distributions; import com.imsl.math.PrintMatrix; import com.imsl.math.PrintMatrixFormat; import com.imsl.stat.distributions.GeometricPD; import java.text.DecimalFormat; /** *
* Evaluates the geometric probability distribution.
** This example evaluates the geometric density, gradient, and hessian for a small * sample of data.
* * @see Code * @see Output */ public class GeometricPDEx1 { public static void main(String[] args) { double[] x = {0, 1, 3, 5, 7, 9, 10, 12, 15}; GeometricPD gpd = new GeometricPD(); double[] values = new double[x.length]; for(int i=0;i