Class CaseExpander

java.lang.Object
edu.cmu.tetrad.data.CaseExpander
All Implemented Interfaces:
DataFilter

public final class CaseExpander extends Object implements DataFilter
Makes a new data set in which cases in the given data set that have been assigned multiplicies other than n = 1 are copied out n times. This increases the number of rows in the data set.
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Details

    • CaseExpander

      public CaseExpander()
      Initializes a new instance of the CaseExpander class.
  • Method Details

    • filter

      public DataSet filter(DataSet dataSet)
      Interpolates the given data set, producing a data set with no missing values.

      Expands cases for the given dataset.

      Specified by:
      filter in interface DataFilter
      Parameters:
      dataSet - the data set to interpolate.
      Returns:
      the interpolated data set.