|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.math.distribution.Wishart
Wishart distribution, used to simulate covariance matrices.
Based on method in Odell and Feiveson JASA 1966 p.199-203
The interface is modeled after ContinuousDistribution from colt, which unfortunately is designed only for univariate distributions.
Copyright (c) 2004 Columbia University
| Constructor Summary | |
Wishart(double df,
cern.colt.matrix.DoubleMatrix2D covariance,
cern.jet.random.engine.RandomEngine randomGenerator)
|
|
| Method Summary | |
cern.colt.matrix.DoubleMatrix2D |
nextDoubleMatrix()
Based on R code from Francesca Dominici, http://www.biostat.jhsph.edu/~fdominic/teaching/BM/bm.html |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Wishart(double df,
cern.colt.matrix.DoubleMatrix2D covariance,
cern.jet.random.engine.RandomEngine randomGenerator)
df - covariance - randomGenerator - | Method Detail |
public cern.colt.matrix.DoubleMatrix2D nextDoubleMatrix()
Returns
w=(RU)'RU
where
Cov=U'U (U is upper triang)
and where upper-tri R is
R_ij˜N(0,1), i<j ; (R_ii)ˆ2˜Chisq(nu-s+i)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||