public CorrelationMatrix(DataSet dataSet){
  super(Collections.unmodifiableList(dataSet.getVariables()),dataSet.getCorrelationMatrix(),dataSet.getNumRows());
  if (!dataSet.isContinuous()) {
    throw new IllegalArgumentException("Data set not continuous.");
  }
  if (DataUtils.containsMissingValue(dataSet)) {
    throw new IllegalArgumentException("Please remove or impute missing values.");
  }
}

public CorrelationMatrix ( DataSet dataSet ) { super ( Collections . unmodifiableList ( dataSet . getVariables ( ) ) , dataSet . getCorrelationMatrix ( ) , dataSet . getNumRows ( ) ) ; if ( ! dataSet . isContinuous ( ) ) { throw new IllegalArgumentException ( "Data set not continuous." ) ; } if ( DataUtils . containsMissingValue ( dataSet ) ) { throw new IllegalArgumentException ( "Please remove or impute missing values." ) ; } }
constructs a new correlation matrix from the the given dataset .
