}
@DataParallel @Internal
public static double pchisq(@Recycle double q, @Recycle double df, boolean lowerTail, boolean logP) {
if(df == 0) {
return p(new ChisquareZeroDfDistribution(), q, lowerTail, logP);
} else {
return p(new ChiSquaredDistributionImpl(df), q, lowerTail, logP);
}
}