@Test public void testSd() { System.out.println("sd"); ChiSquareDistribution instance = new ChiSquareDistribution(20); instance.rand(); assertEquals(Math.sqrt(40), instance.sd(), 1E-7); }
@Override public double sd() { return Math.sqrt(2 * nu); }
ChiSquareDistribution extends AbstractDistribution implements ExponentialFamily { @Override public double sd() { return Math.sqrt(2 * nu); } }
ChiSquareDistribution extends AbstractDistribution implements ExponentialFamily { @Override public double sd() { return Math.sqrt(2 * nu); } ChiSquareDistribution(int nu); }
ChiSquareDistribution extends AbstractDistribution implements ExponentialFamily { @Override public double sd() { return Math.sqrt(2 * nu); } ChiSquareDistribution(int nu); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double rand(); @Override double p(double x); @Override double logp(double x); @Override double cdf(double x); @Override double quantile(double p); @Override Mixture.Component M(double[] x, double[] posteriori); }
ChiSquareDistribution extends AbstractDistribution implements ExponentialFamily { @Override public double sd() { return Math.sqrt(2 * nu); } ChiSquareDistribution(int nu); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double rand(); @Override double p(double x); @Override double logp(double x); @Override double cdf(double x); @Override double quantile(double p); @Override Mixture.Component M(double[] x, double[] posteriori); final int nu; }