Class ConditionalGaussianSimulation
java.lang.Object
edu.cmu.tetrad.algcomparison.simulation.ConditionalGaussianSimulation
- All Implemented Interfaces:
Simulation
,HasParameters
,TetradSerializable
,Serializable
A simulation method based on the conditional Gaussian assumption.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ConditionalGaussianSimulation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createData
(Parameters parameters, boolean newModel) Creates a data set and simulates data.getDataModel
(int index) Returns the number of data sets to simulate.Returns the data type of the data.Returns the description of the simulation.int
Returns the number of data models.Returns the list of parameters used in the simulation.Class
<? extends RandomGraph> Retrieves the class of a random graph for the simulation.Returns the short name of the simulation.Class
<? extends Simulation> Returns the class of the simulation.getTrueGraph
(int index) Returns the true graph at the given index.void
setCoefHigh
(double coefHigh) Setter for the fieldcoefHigh
.void
setCoefLow
(double coefLow) Setter for the fieldcoefLow
.void
setCoefSymmetric
(boolean coefSymmetric) Setter for the fieldcoefSymmetric
.void
setMeanHigh
(double meanHigh) Setter for the fieldmeanHigh
.void
setMeanLow
(double meanLow) Setter for the fieldmeanLow
.void
setVarHigh
(double varHigh) Setter for the fieldvarHigh
.void
setVarLow
(double varLow) Setter for the fieldvarLow
.
-
Constructor Details
-
ConditionalGaussianSimulation
Constructor for ConditionalGaussianSimulation.
- Parameters:
graph
- aRandomGraph
object
-
-
Method Details
-
createData
Creates a data set and simulates data.- Specified by:
createData
in interfaceSimulation
- Parameters:
parameters
- The parameters to use in the simulation.newModel
- If true, a new model is created. If false, the model is reused.
-
getTrueGraph
Returns the true graph at the given index.- Specified by:
getTrueGraph
in interfaceSimulation
- Parameters:
index
- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
Returns the number of data sets to simulate.- Specified by:
getDataModel
in interfaceSimulation
- Parameters:
index
- The index of the desired simulated data set.- Returns:
- That data set.
-
getDescription
Returns the description of the simulation.- Specified by:
getDescription
in interfaceSimulation
- Returns:
- Returns a one-line description of the simulation, to be printed at the beginning of the report.
-
getShortName
Returns the short name of the simulation.- Specified by:
getShortName
in interfaceSimulation
- Returns:
- The short name of the simulation.
-
getParameters
Returns the list of parameters used in the simulation.- Specified by:
getParameters
in interfaceHasParameters
- Specified by:
getParameters
in interfaceSimulation
- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
-
getRandomGraphClass
Description copied from interface:Simulation
Retrieves the class of a random graph for the simulation.- Specified by:
getRandomGraphClass
in interfaceSimulation
- Returns:
- The class of a random graph for the simulation.
-
getSimulationClass
Description copied from interface:Simulation
Returns the class of the simulation. This method is used to retrieve the class of a simulation based on the selected simulations in the model.- Specified by:
getSimulationClass
in interfaceSimulation
- Returns:
- The class of the simulation.
-
getNumDataModels
public int getNumDataModels()Returns the number of data models.- Specified by:
getNumDataModels
in interfaceSimulation
- Returns:
- The number of data sets to simulate.
-
getDataType
Returns the data type of the data.- Specified by:
getDataType
in interfaceSimulation
- Returns:
- Returns the type of the data, continuous, discrete or mixed.
-
setVarLow
public void setVarLow(double varLow) Setter for the field
varLow
.- Parameters:
varLow
- a double
-
setVarHigh
public void setVarHigh(double varHigh) Setter for the field
varHigh
.- Parameters:
varHigh
- a double
-
setCoefLow
public void setCoefLow(double coefLow) Setter for the field
coefLow
.- Parameters:
coefLow
- a double
-
setCoefHigh
public void setCoefHigh(double coefHigh) Setter for the field
coefHigh
.- Parameters:
coefHigh
- a double
-
setCoefSymmetric
public void setCoefSymmetric(boolean coefSymmetric) Setter for the field
coefSymmetric
.- Parameters:
coefSymmetric
- a boolean
-
setMeanLow
public void setMeanLow(double meanLow) Setter for the field
meanLow
.- Parameters:
meanLow
- a double
-
setMeanHigh
public void setMeanHigh(double meanHigh) Setter for the field
meanHigh
.- Parameters:
meanHigh
- a double
-