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 TypeMethodDescriptionint
getC()
Getter for the fieldc
.Getter for the fieldknowledge
.int
Getter for the fieldmaxNumShifts
.int
Getter for the fieldmaxShift
.int[]
search()
search.void
setC
(int c) Setter for the fieldc
.void
setForwardSearch
(boolean forwardSearch) Setter for the fieldforwardSearch
.void
setKnowledge
(Knowledge knowledge) Setter for the fieldknowledge
.void
setMaxNumShifts
(int maxNumShifts) Setter for the fieldmaxNumShifts
.void
setMaxShift
(int maxShift) Setter for the fieldmaxShift
.void
setOut
(OutputStream out) Setter for the fieldout
.void
setPrecomputeCovariances
(boolean precomputeCovariances) Setter for the fieldprecomputeCovariances
.void
stop()
stop.
-
Constructor Details
-
ShiftSearch
-
-
Method Details
-
search
search.
- Returns:
- an array of objects
- Throws:
InterruptedException
-
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
-
setKnowledge
-
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
- aOutputStream
object
-
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
-