org.omegahat.Simulation.MCMC.Targets
Class BivariateNormalLikelihood
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Targets.BivariateNormalLikelihood
- All Implemented Interfaces:
- UnnormalizedDensity
- public class BivariateNormalLikelihood
- extends java.lang.Object
- implements UnnormalizedDensity
A Bivariate normal density
Method Summary |
protected double |
computeLog(double[][] X,
double mu1,
double mu2,
double sigma,
double rho)
|
double |
logUnnormalizedPDF(java.lang.Object state)
|
protected void |
readData(java.lang.String dataFile)
|
protected double |
square(double x)
|
double |
unnormalizedPDF(java.lang.Object state)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
X
protected double[][] X
norm
protected BivariateNormalDensity norm
BivariateNormalLikelihood
public BivariateNormalLikelihood(java.lang.String filename)
logUnnormalizedPDF
public double logUnnormalizedPDF(java.lang.Object state)
- Specified by:
logUnnormalizedPDF
in interface UnnormalizedDensity
unnormalizedPDF
public double unnormalizedPDF(java.lang.Object state)
- Specified by:
unnormalizedPDF
in interface UnnormalizedDensity
computeLog
protected double computeLog(double[][] X,
double mu1,
double mu2,
double sigma,
double rho)
square
protected double square(double x)
readData
protected void readData(java.lang.String dataFile)
throws java.io.IOException