Package adams.data.instances
Class Compatibility
- java.lang.Object
-
- adams.data.instances.Compatibility
-
public class Compatibility extends Object
Checks the compatibility of datasets.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description Compatibility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcompareLenient(weka.core.Instances data1, weka.core.Instances data2)Does not require the attribute names to match.static StringcompareStrict(weka.core.Instances data1, weka.core.Instances data2)Does not require the attribute names to match.static StringisCompatible(weka.core.Instances data1, weka.core.Instances data2, boolean strict)Checks the compatibility of two datasets.
-
-
-
Method Detail
-
compareStrict
public static String compareStrict(weka.core.Instances data1, weka.core.Instances data2)
Does not require the attribute names to match.- Parameters:
data1- the first dataset in the comparisondata2- the second dataset in the comparison- Returns:
- null if compatible, otherwise mismatch message
-
compareLenient
public static String compareLenient(weka.core.Instances data1, weka.core.Instances data2)
Does not require the attribute names to match.- Parameters:
data1- the first dataset in the comparisondata2- the second dataset in the comparison- Returns:
- null if compatible, otherwise mismatch message
-
isCompatible
public static String isCompatible(weka.core.Instances data1, weka.core.Instances data2, boolean strict)
Checks the compatibility of two datasets.- Parameters:
data1- the first datasetdata2- the second datasetstrict- if enabled, attribute names must match as well- Returns:
- null if compatible, other mismatch message
-
-