@Test public void testLength() { System.out.println("length"); NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3); instance.rand(); assertEquals(2, instance.length()); }
@Override public int length() { return 2; }
NegativeBinomialDistribution extends DiscreteDistribution { @Override public int length() { return 2; } }
NegativeBinomialDistribution extends DiscreteDistribution { @Override public int length() { return 2; } NegativeBinomialDistribution(double r, double p); }
NegativeBinomialDistribution extends DiscreteDistribution { @Override public int length() { return 2; } NegativeBinomialDistribution(double r, double p); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double rand(); @Override double p(int k); @Override double logp(int k); @Override double cdf(double k); @Override double quantile(double p); }
NegativeBinomialDistribution extends DiscreteDistribution { @Override public int length() { return 2; } NegativeBinomialDistribution(double r, double p); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double rand(); @Override double p(int k); @Override double logp(int k); @Override double cdf(double k); @Override double quantile(double p); final double r; final double p; }