Class LinearSineSimulation
java.lang.Object
edu.cmu.tetrad.algcomparison.simulation.LinearSineSimulation
- All Implemented Interfaces:
Simulation,HasParameters,TetradSerializable,Serializable
A simulation method based on the mixed variable polynomial assumption.
- Version:
- $Id: $Id
- Author:
- Bryan Andrews
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLinearSineSimulation(RandomGraph graph) Constructor for LinearSineSimulation. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateData(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.intReturns 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.voidsetBetaHigh(double betaHigh) Setter for the fieldbetaHigh.voidsetBetaLow(double betaLow) Setter for the fieldbetaLow.voidsetGammaHigh(double gammaHigh) Setter for the fieldgammaHigh.voidsetGammaLow(double gammaLow) Setter for the fieldgammaLow.voidsetInterceptHigh(double interceptHigh) Setter for the fieldinterceptHigh.voidsetInterceptLow(double interceptLow) Setter for the fieldinterceptLow.voidsetLinearHigh(double linearHigh) Setter for the fieldlinearHigh.voidsetLinearLow(double linearLow) Setter for the fieldlinearLow.voidsetVarHigh(double varHigh) Setter for the fieldvarHigh.voidsetVarLow(double varLow) Setter for the fieldvarLow.
-
Constructor Details
-
LinearSineSimulation
Constructor for LinearSineSimulation.
- Parameters:
graph- aRandomGraphobject
-
-
Method Details
-
createData
Creates a data set and simulates data.- Specified by:
createDatain 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:
getTrueGraphin interfaceSimulation- Parameters:
index- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
Returns the number of data sets to simulate.- Specified by:
getDataModelin interfaceSimulation- Parameters:
index- The index of the desired simulated data set.- Returns:
- That data set.
-
getDescription
Returns the description of the simulation.- Specified by:
getDescriptionin 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:
getShortNamein interfaceSimulation- Returns:
- The short name of the simulation.
-
getParameters
Returns the list of parameters used in the simulation.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceSimulation- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
-
getRandomGraphClass
Description copied from interface:SimulationRetrieves the class of a random graph for the simulation.- Specified by:
getRandomGraphClassin interfaceSimulation- Returns:
- The class of a random graph for the simulation.
-
getSimulationClass
Description copied from interface:SimulationReturns 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:
getSimulationClassin interfaceSimulation- Returns:
- The class of the simulation.
-
getNumDataModels
public int getNumDataModels()Returns the number of data models.- Specified by:
getNumDataModelsin interfaceSimulation- Returns:
- The number of data sets to simulate.
-
getDataType
Returns the data type of the data.- Specified by:
getDataTypein interfaceSimulation- Returns:
- Returns the type of the data, continuous, discrete or mixed.
-
setInterceptLow
public void setInterceptLow(double interceptLow) Setter for the field
interceptLow.- Parameters:
interceptLow- a double
-
setInterceptHigh
public void setInterceptHigh(double interceptHigh) Setter for the field
interceptHigh.- Parameters:
interceptHigh- a double
-
setLinearLow
public void setLinearLow(double linearLow) Setter for the field
linearLow.- Parameters:
linearLow- a double
-
setLinearHigh
public void setLinearHigh(double linearHigh) Setter for the field
linearHigh.- Parameters:
linearHigh- a double
-
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
-
setBetaLow
public void setBetaLow(double betaLow) Setter for the field
betaLow.- Parameters:
betaLow- a double
-
setBetaHigh
public void setBetaHigh(double betaHigh) Setter for the field
betaHigh.- Parameters:
betaHigh- a double
-
setGammaLow
public void setGammaLow(double gammaLow) Setter for the field
gammaLow.- Parameters:
gammaLow- a double
-
setGammaHigh
public void setGammaHigh(double gammaHigh) Setter for the field
gammaHigh.- Parameters:
gammaHigh- a double
-