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.
- Author:
- Bryan Andrews
- See Also:
-
Constructor Summary
Constructors -
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.getTrueGraph(int index) Returns the true graph at the given index.voidsetBetaHigh(double betaHigh) voidsetBetaLow(double betaLow) voidsetGammaHigh(double gammaHigh) voidsetGammaLow(double gammaLow) voidsetInterceptHigh(double interceptHigh) voidsetInterceptLow(double interceptLow) voidsetLinearHigh(double linearHigh) voidsetLinearLow(double linearLow) voidsetVarHigh(double varHigh) voidsetVarLow(double varLow)
-
Constructor Details
-
LinearSineSimulation
-
-
Method Details
-
createData
Description copied from interface:SimulationCreates 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
Description copied from interface:SimulationReturns the true graph at the given index.- Specified by:
getTrueGraphin interfaceSimulation- Parameters:
index- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
Description copied from interface:SimulationReturns 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
Description copied from interface:SimulationReturns 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.
-
getParameters
Description copied from interface:SimulationReturns 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.
-
getNumDataModels
public int getNumDataModels()Description copied from interface:SimulationReturns the number of data models.- Specified by:
getNumDataModelsin interfaceSimulation- Returns:
- The number of data sets to simulate.
-
getDataType
Description copied from interface:SimulationReturns 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) -
setInterceptHigh
public void setInterceptHigh(double interceptHigh) -
setLinearLow
public void setLinearLow(double linearLow) -
setLinearHigh
public void setLinearHigh(double linearHigh) -
setVarLow
public void setVarLow(double varLow) -
setVarHigh
public void setVarHigh(double varHigh) -
setBetaLow
public void setBetaLow(double betaLow) -
setBetaHigh
public void setBetaHigh(double betaHigh) -
setGammaLow
public void setGammaLow(double gammaLow) -
setGammaHigh
public void setGammaHigh(double gammaHigh)
-