Class ShiftSearch

java.lang.Object
edu.cmu.tetrad.search.utils.ShiftSearch

public class ShiftSearch extends Object

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 Details

    • ShiftSearch

      public ShiftSearch(List<DataModel> dataSets)

      Constructor for ShiftSearch.

      Parameters:
      dataSets - a List object
  • Method Details

    • search

      public int[] search()

      search.

      Returns:
      an array of int objects
    • 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

      public Knowledge getKnowledge()

      Getter for the field knowledge.

      Returns:
      a Knowledge object
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)

      Setter for the field knowledge.

      Parameters:
      knowledge - a Knowledge object
    • 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

      public void setOut(OutputStream out)

      Setter for the field out.

      Parameters:
      out - a OutputStream 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