/** * Modify the degrees of freedom. * @param degreesOfFreedom the new degrees of freedom. * @deprecated as of 2.1 (class will become immutable in 3.0) */ @Deprecated public void setDegreesOfFreedom(double degreesOfFreedom) { setDegreesOfFreedomInternal(degreesOfFreedom); } /**
/** * Modify the degrees of freedom. * @param degreesOfFreedom the new degrees of freedom. * @deprecated as of 2.1 (class will become immutable in 3.0) */ @Deprecated public void setDegreesOfFreedom(double degreesOfFreedom) { setDegreesOfFreedomInternal(degreesOfFreedom); } /**
/** * Create a Chi-Squared distribution with the given degrees of freedom and * inverse cumulative probability accuracy. * @param df degrees of freedom. * @param inverseCumAccuracy the maximum absolute error in inverse cumulative probability estimates * (defaults to {@link #DEFAULT_INVERSE_ABSOLUTE_ACCURACY}) * @since 2.1 */ public ChiSquaredDistributionImpl(double df, double inverseCumAccuracy) { super(); gamma = new GammaDistributionImpl(df / 2.0, 2.0); setDegreesOfFreedomInternal(df); solverAbsoluteAccuracy = inverseCumAccuracy; }
/** * Create a Chi-Squared distribution with the given degrees of freedom and * inverse cumulative probability accuracy. * @param df degrees of freedom. * @param inverseCumAccuracy the maximum absolute error in inverse cumulative probability estimates * (defaults to {@link #DEFAULT_INVERSE_ABSOLUTE_ACCURACY}) * @since 2.1 */ public ChiSquaredDistributionImpl(double df, double inverseCumAccuracy) { super(); gamma = new GammaDistributionImpl(df / 2.0, 2.0); setDegreesOfFreedomInternal(df); solverAbsoluteAccuracy = inverseCumAccuracy; }
/** * Create a Chi-Squared distribution with the given degrees of freedom. * @param df degrees of freedom. * @param g the underlying gamma distribution used to compute probabilities. * @since 1.2 * @deprecated as of 2.1 (to avoid possibly inconsistent state, the * "GammaDistribution" will be instantiated internally) */ @Deprecated public ChiSquaredDistributionImpl(double df, GammaDistribution g) { super(); setGammaInternal(g); setDegreesOfFreedomInternal(df); solverAbsoluteAccuracy = DEFAULT_INVERSE_ABSOLUTE_ACCURACY; }
/** * Create a Chi-Squared distribution with the given degrees of freedom. * @param df degrees of freedom. * @param g the underlying gamma distribution used to compute probabilities. * @since 1.2 * @deprecated as of 2.1 (to avoid possibly inconsistent state, the * "GammaDistribution" will be instantiated internally) */ @Deprecated public ChiSquaredDistributionImpl(double df, GammaDistribution g) { super(); setGammaInternal(g); setDegreesOfFreedomInternal(df); solverAbsoluteAccuracy = DEFAULT_INVERSE_ABSOLUTE_ACCURACY; }