Package edu.cmu.tetrad.search.utils
Class ShiftSearch
java.lang.Object
edu.cmu.tetrad.search.utils.ShiftSearch
Tries to find a good shifting of variables to minimize average BIC for time-series data. The idea is that the data one is presented with may have the variables temporally shifted with respect to one another. ShiftSearch attempts to find a shifting of the variables that reduces this temporal shifting.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetC()Getter for the fieldc.Getter for the fieldknowledge.intGetter for the fieldmaxNumShifts.intGetter for the fieldmaxShift.int[]search()search.voidsetC(int c) Setter for the fieldc.voidsetForwardSearch(boolean forwardSearch) Setter for the fieldforwardSearch.voidsetKnowledge(Knowledge knowledge) Setter for the fieldknowledge.voidsetMaxNumShifts(int maxNumShifts) Setter for the fieldmaxNumShifts.voidsetMaxShift(int maxShift) Setter for the fieldmaxShift.voidsetOut(OutputStream out) Setter for the fieldout.voidsetPrecomputeCovariances(boolean precomputeCovariances) Setter for the fieldprecomputeCovariances.voidstop()stop.
-
Constructor Details
-
ShiftSearch
Constructor for ShiftSearch.
- Parameters:
dataSets- aListobject
-
-
Method Details
-
search
search.
- Returns:
- an array of objects
- Throws:
InterruptedException- if any.
-
getMaxShift
public int getMaxShift()Getter for the field
maxShift.- Returns:
- a int
-
setMaxShift
public void setMaxShift(int maxShift) Setter for the field
maxShift.- Parameters:
maxShift- a int
-
getKnowledge
Getter for the field
knowledge.- Returns:
- a
Knowledgeobject
-
setKnowledge
Setter for the field
knowledge.- Parameters:
knowledge- aKnowledgeobject
-
getC
public int getC()Getter for the field
c.- Returns:
- a int
-
setC
public void setC(int c) Setter for the field
c.- Parameters:
c- a int
-
getMaxNumShifts
public int getMaxNumShifts()Getter for the field
maxNumShifts.- Returns:
- a int
-
setMaxNumShifts
public void setMaxNumShifts(int maxNumShifts) Setter for the field
maxNumShifts.- Parameters:
maxNumShifts- a int
-
setOut
Setter for the field
out.- Parameters:
out- aOutputStreamobject
-
stop
public void stop()stop.
-
setForwardSearch
public void setForwardSearch(boolean forwardSearch) Setter for the field
forwardSearch.- Parameters:
forwardSearch- a boolean
-
setPrecomputeCovariances
public void setPrecomputeCovariances(boolean precomputeCovariances) Setter for the field
precomputeCovariances.- Parameters:
precomputeCovariances- a boolean
-