/** * {@inheritDoc} * * @return {@code 2 * k}, where {@code k} is the number of degrees of freedom. */ public double getNumericalVariance() { return 2 * getDegreesOfFreedom(); }
/** * {@inheritDoc} * * For {@code k} degrees of freedom, the mean is {@code k}. */ public double getNumericalMean() { return getDegreesOfFreedom(); }
/** * {@inheritDoc} * * For {@code k} degrees of freedom, the mean is {@code k}. */ public double getNumericalMean() { return getDegreesOfFreedom(); }
/** * {@inheritDoc} * * @return {@code 2 * k}, where {@code k} is the number of degrees of freedom. */ public double getNumericalVariance() { return 2 * getDegreesOfFreedom(); }
/** * {@inheritDoc} * * For {@code k} degrees of freedom, the mean is {@code k}. */ public double getNumericalMean() { return getDegreesOfFreedom(); }
/** * {@inheritDoc} * * @return {@code 2 * k}, where {@code k} is the number of degrees of freedom. */ public double getNumericalVariance() { return 2 * getDegreesOfFreedom(); }
/** * @param df * degree of freedom * @return implementation of ChiSquaredDistribution for given degree of * freedom */ ChiSquaredDistribution getChiSquaredDistribution(double df) { if (chisquared == null || chisquared.getDegreesOfFreedom() != df) { chisquared = new ChiSquaredDistribution(df); } return chisquared; }
/** * @param param * degrees of freedom * @return chi squared distribution */ protected ChiSquaredDistribution getChiSquaredDistribution(double param) { if (chisquared == null || chisquared.getDegreesOfFreedom() != param) { chisquared = new ChiSquaredDistribution(param); } return chisquared; }
/** * @param df * degree of freedom * @return implementation of ChiSquaredDistribution for given degree of * freedom */ private ChiSquaredDistribution getChiSquaredDistribution(double df) { if (chisquared == null || chisquared.getDegreesOfFreedom() != df) { chisquared = new ChiSquaredDistribution(df); } return chisquared; }
ChiSquaredDistribution ca = (ChiSquaredDistribution) a; ChiSquaredDistribution cb = (ChiSquaredDistribution) b; return ca.getDegreesOfFreedom() == cb.getDegreesOfFreedom(); } else if (c == ExponentialDistribution.class) { ExponentialDistribution ea = (ExponentialDistribution) a;
ChiSquaredDistribution ca = (ChiSquaredDistribution) a; ChiSquaredDistribution cb = (ChiSquaredDistribution) b; return ca.getDegreesOfFreedom() == cb.getDegreesOfFreedom(); } else if (c == ExponentialDistribution.class) { ExponentialDistribution ea = (ExponentialDistribution) a;
} else if (c == ChiSquaredDistribution.class) { ChiSquaredDistribution cd = (ChiSquaredDistribution) d; j.writeNumberField("dof", cd.getDegreesOfFreedom()); } else if (c == ExponentialDistribution.class) { ExponentialDistribution ed = (ExponentialDistribution) d;
} else if (c == ChiSquaredDistribution.class) { ChiSquaredDistribution cd = (ChiSquaredDistribution) d; j.writeNumberField("dof", cd.getDegreesOfFreedom()); } else if (c == ExponentialDistribution.class) { ExponentialDistribution ed = (ExponentialDistribution) d;