org.knime.base.node.mine.cluster
Class PMMLClusterHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.knime.core.node.port.pmml.PMMLContentHandler
org.knime.base.node.mine.cluster.PMMLClusterHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class PMMLClusterHandler
- extends PMMLContentHandler
- Author:
- Fabian Dill, University of Konstanz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PMMLClusterHandler
public PMMLClusterHandler()
getNrOfClusters
public int getNrOfClusters()
- Returns:
- number of clusters
getPrototypes
public double[][] getPrototypes()
- Returns:
- the prototypes
getLabels
public String[] getLabels()
- Returns:
- labels of the cluster in same order as prototypes
getClusterCoverage
public int[] getClusterCoverage()
- Returns:
- the number of items in the cluster
getUsedColumns
public Set<String> getUsedColumns()
- Returns:
- list of used columns
getComparisonMeasure
public PMMLClusterPortObject.ComparisonMeasure getComparisonMeasure()
- Returns:
- the used comparison measure
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
-
- Specified by:
characters
in interface ContentHandler
- Specified by:
characters
in class PMMLContentHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
-
- Specified by:
endDocument
in interface ContentHandler
- Specified by:
endDocument
in class PMMLContentHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String name)
throws SAXException
-
- Specified by:
endElement
in interface ContentHandler
- Specified by:
endElement
in class PMMLContentHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String localName,
String name,
Attributes atts)
throws SAXException
-
- Specified by:
startElement
in interface ContentHandler
- Specified by:
startElement
in class PMMLContentHandler
- Throws:
SAXException
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.