use of edu.cmu.tetrad.util.dist.GaussianPower in project tetrad by cmu-phil.
the class Ling method makeDataSet.
private void makeDataSet(GraphWithParameters graphWP) {
// define the "Gaussian-squared" distribution
Distribution gp2 = new GaussianPower(2);
// the coefficients of the error terms (here, all 1s)
TetradVector errorCoefficients = getErrorCoeffsIdentity(graphWP.getGraph().getNumNodes());
// generate data from the SEM
TetradMatrix inVectors = simulateCyclic(graphWP, errorCoefficients, numSamples, gp2);
// reformat it
dataSet = ColtDataSet.makeContinuousData(graphWP.getGraph().getNodes(), new TetradMatrix(inVectors.transpose().toArray()));
}
Aggregations