hultig.util
Class Matrix

java.lang.Object
  extended by hultig.util.Matrix

public class Matrix
extends Object

A collection of static tools to handle matrix arrays

Copyright: Copyright (c) 2007

Company: UBI/HULTIG


Constructor Summary
Matrix()
           
 
Method Summary
static
<T> ArrayList<MatrixItem>
bestAssignment(ArrayList<T> u, ArrayList<T> v, AssignFunction<T> f)
          Given two generic vectors and an assignment function, computes the best possible assignment among the two vector elements.
static void main(String[] args)
          A bunch of tests for this class.
static ArrayList<MatrixItem> selectBestAssignment(ArrayList<MatrixItem> v, int n)
          Given a matrix <index(i,j), value> vector, select the n best exclusive assignments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matrix

public Matrix()
Method Detail

bestAssignment

public static <T> ArrayList<MatrixItem> bestAssignment(ArrayList<T> u,
                                                       ArrayList<T> v,
                                                       AssignFunction<T> f)
Given two generic vectors and an assignment function, computes the best possible assignment among the two vector elements.

Parameters:
u - Vector
v - Vector
f - Assignment
Returns:
Vector

selectBestAssignment

public static ArrayList<MatrixItem> selectBestAssignment(ArrayList<MatrixItem> v,
                                                         int n)
Given a matrix <index(i,j), value> vector, select the n best exclusive assignments.

Parameters:
v - Vector
n -
Returns:
Vector

main

public static void main(String[] args)
A bunch of tests for this class.

Parameters:
args - String[]