cc.mallet.cluster.util
Class PairwiseMatrix

java.lang.Object
  extended by cc.mallet.cluster.util.PairwiseMatrix
All Implemented Interfaces:
java.io.Serializable

public class PairwiseMatrix
extends java.lang.Object
implements java.io.Serializable

2-D upper-triangular matrix. Used to store pairwise affinity scores.

Since:
1.0
Version:
1.0
Author:
"Aron Culotta"
See Also:
Serialized Form

Constructor Summary
PairwiseMatrix(int size)
           
 
Method Summary
 double get(int i, int j)
           
 int length(int i)
           
static void main(java.lang.String[] args)
           
 void set(int i, int j, double v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PairwiseMatrix

public PairwiseMatrix(int size)
Method Detail

set

public void set(int i,
                int j,
                double v)

get

public double get(int i,
                  int j)

length

public int length(int i)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)