/** * Change the number of trials for this distribution. * * @param trials the new number of trials. * @throws IllegalArgumentException if <code>trials</code> is not a valid * number of trials. * @deprecated as of 2.1 (class will become immutable in 3.0) */ @Deprecated public void setNumberOfTrials(int trials) { setNumberOfTrialsInternal(trials); }
/** * Change the number of trials for this distribution. * * @param trials the new number of trials. * @throws IllegalArgumentException if <code>trials</code> is not a valid * number of trials. * @deprecated as of 2.1 (class will become immutable in 3.0) */ @Deprecated public void setNumberOfTrials(int trials) { setNumberOfTrialsInternal(trials); } /**
/** * Create a binomial distribution with the given number of trials and * probability of success. * * @param trials the number of trials. * @param p the probability of success. */ public BinomialDistributionImpl(int trials, double p) { super(); setNumberOfTrialsInternal(trials); setProbabilityOfSuccessInternal(p); }
/** * Create a binomial distribution with the given number of trials and * probability of success. * * @param trials the number of trials. * @param p the probability of success. */ public BinomialDistributionImpl(int trials, double p) { super(); setNumberOfTrialsInternal(trials); setProbabilityOfSuccessInternal(p); }