in commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/FDistribution.java [168:181]
public double logDensity(double x) {
if (x <= SUPPORT_LO ||
x >= SUPPORT_HI) {
// Special case x=0:
// PDF reduces to the term x^(df1 / 2 - 1) multiplied by a scaling factor
if (x == SUPPORT_LO && numeratorDegreesOfFreedom <= 2) {
return numeratorDegreesOfFreedom == 2 ?
0 :
Double.POSITIVE_INFINITY;
}
return Double.NEGATIVE_INFINITY;
}
return computeDensity(x, true);
}