de.aitools.aq.algebra
Class Algebra
java.lang.Object
de.aitools.aq.algebra.Algebra
public class Algebra
- extends java.lang.Object
- Version:
- $Id: Algebra.java,v 1.2 2011/04/14 13:10:44 hoppe Exp $
- Author:
- dennis.hoppe(/\t)uni-weimar.de
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Algebra
public Algebra()
getColumnSums
public static double[] getColumnSums(Matrix matrix)
getRowSums
public static double[] getRowSums(Matrix matrix)
computeContingencyTable
public static Matrix computeContingencyTable(int[] classAssignment,
int[] clusterAssignment)
- Contingency table for comparing two partitions.
References:
K.~Y. Yeung and W.~L. Russo, 2010.
Details of the Adjusted Rand index and Clustering algorithms Supplement
to the paper 'An empirical study on Principal Component Analysis for
clustering gene expression data'.
- Parameters:
classAssignment
- clusterAssignment
-
- Returns:
toMatrix
public static Matrix toMatrix(int[] assignment)
computePairwiseContingencyTable
public static Matrix computePairwiseContingencyTable(Matrix contingencyTable)
- Pairwise contingency table.
| Same Cluster | Different Cluster |
----------------- -------------- -------------------
Same Class | f_11 | f_10 |
Different Class | f_01 | f_00 |
----------------- -------------- -------------------
- Parameters:
contingencyTable
-
- Returns: