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 TypeMethodDescriptionvoid
createData
(Parameters parameters, boolean newModel) Creates a data set and simulates data.getDataModel
(int index) int
getTrueGraph
(int index) void
setBetaHigh
(double betaHigh) void
setBetaLow
(double betaLow) void
setGammaHigh
(double gammaHigh) void
setGammaLow
(double gammaLow) void
setInterceptHigh
(double interceptHigh) void
setInterceptLow
(double interceptLow) void
setLinearHigh
(double linearHigh) void
setLinearLow
(double linearLow) void
setVarHigh
(double varHigh) void
setVarLow
(double varLow)
-
Constructor Details
-
LinearSineSimulation
-
-
Method Details
-
createData
Description copied from interface:Simulation
Creates a data set and simulates data.- Specified by:
createData
in interfaceSimulation
-
getTrueGraph
- Specified by:
getTrueGraph
in interfaceSimulation
- Parameters:
index
- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
- Specified by:
getDataModel
in interfaceSimulation
- Parameters:
index
- The index of the desired simulated data set.- Returns:
- That data set.
-
getDescription
- Specified by:
getDescription
in interfaceSimulation
- Returns:
- Returns a one-line description of the simulation, to be printed at the beginning of the report.
-
getParameters
- 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.
-
getNumDataModels
public int getNumDataModels()- Specified by:
getNumDataModels
in interfaceSimulation
- Returns:
- The number of data sets to simulate.
-
getDataType
- Specified by:
getDataType
in 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)
-