/** * Checks for string attributes in the dataset * * @return true if string attributes are present, false otherwise */ public/* @pure@ */boolean checkForStringAttributes() { return checkForAttributeType(Attribute.STRING); }
/** * Checks for string attributes in the dataset * * @return true if string attributes are present, false otherwise */ public/* @pure@ */boolean checkForStringAttributes() { return checkForAttributeType(Attribute.STRING); }
if (header.checkForAttributeType(Attribute.DATE)) { result += "\n" + dateBuilder.toString(); if (header.checkForAttributeType(Attribute.NUMERIC)) { result += "\n" + numericBuilder.toString(); if (header.checkForAttributeType(Attribute.STRING)) { result += "\n" + stringBuilder.toString(); if (header.checkForAttributeType(Attribute.NOMINAL)) { result += "\n" + nominalBuilder.toString();
public void testTypical() { Instances result = useFilter(); // Number of attributes and instances shouldn't change assertEquals(m_Instances.numAttributes(), result.numAttributes()); assertEquals(m_Instances.numInstances(), result.numInstances()); // no date and numeric attributes should remain if (result.checkForAttributeType(Attribute.DATE)) fail("Date attribute(s) left over!"); if (result.checkForAttributeType(Attribute.NUMERIC)) fail("Numeric attribute(s) left over!"); }
public void testTypical() { Instances result = useFilter(); // Number of attributes and instances shouldn't change assertEquals(m_Instances.numAttributes(), result.numAttributes()); assertEquals(m_Instances.numInstances(), result.numInstances()); // no date and numeric attributes should remain if (result.checkForAttributeType(Attribute.DATE)) fail("Date attribute(s) left over!"); if (result.checkForAttributeType(Attribute.NUMERIC)) fail("Numeric attribute(s) left over!"); }
public void testTypical() { Instances result = useFilter(); // Number of attributes and instances shouldn't change assertEquals(m_Instances.numAttributes(), result.numAttributes()); assertEquals(m_Instances.numInstances(), result.numInstances()); // no date attributes should remain if (result.checkForAttributeType(Attribute.DATE)) fail("Date attribute(s) left over!"); }
public void testTypical() { Instances result = useFilter(); // Number of attributes and instances shouldn't change assertEquals(m_Instances.numAttributes(), result.numAttributes()); assertEquals(m_Instances.numInstances(), result.numInstances()); // no numeric attributes should remain if (result.checkForAttributeType(Attribute.NUMERIC)) fail("Numeric attribute(s) left over!"); }
public void testTypical() { Instances result = useFilter(); // Number of attributes and instances shouldn't change assertEquals(m_Instances.numAttributes(), result.numAttributes()); assertEquals(m_Instances.numInstances(), result.numInstances()); // no numeric attributes should remain if (result.checkForAttributeType(Attribute.NUMERIC)) fail("Numeric attribute(s) left over!"); }
public void testTypical() { Instances result = useFilter(); // Number of attributes and instances shouldn't change assertEquals(m_Instances.numAttributes(), result.numAttributes()); assertEquals(m_Instances.numInstances(), result.numInstances()); // no date attributes should remain if (result.checkForAttributeType(Attribute.DATE)) fail("Date attribute(s) left over!"); }