final double df = value[0];
final double ncp = value[1];
final double x = value[2];
final double expected = value[3];
final NonCentralChiSquaredDistribution nccsd = new NonCentralChiSquaredDistribution(df, ncp);
final double realised = nccsd.op(x);
if (Math.abs(expected-realised)>1.0e-6)
fail("Noncentral chi squared failed: df " + df
+ " ncp " + ncp
+ " x " + x
+ " expected " + expected