mesquite.lib
Class Double2DArray

java.lang.Object
  extended by mesquite.lib.Double2DArray

public class Double2DArray
extends java.lang.Object


Constructor Summary
Double2DArray(double[][] input)
           
Double2DArray(int numC, int numT)
           
 
Method Summary
static double[][] clone(double[][] d)
           
 void deassignArray()
           
static void deassignArray(double[][] values)
           
 void dispose()
           
 double[][] getMatrix()
           
 java.lang.String getName()
           
 NameReference getNameReference()
           
 int getSizeC()
           
 int getSizeT()
           
 double getValue(int ic, int it)
           
 double[] getValues(int ic)
           
static double maximum(double[][] values, boolean ignoreUncombinable)
           
static double maximumInColumn(double[][] values, int column)
           
static double minimum(double[][] values, boolean ignoreUncombinable)
           
static double minimumInColumn(double[][] values, int column)
           
static void moveColumns(double[][] d, int starting, int num, int justAfter)
           
static double[][] multiply(double[][] matrix1, double[][] matrix2, double[][] result)
          borrowed from rhetenor.MatrixUtil
static int numFullColumns(double[][] matrix)
           
static int numFullRows(double[][] matrix)
           
 void resetSize(int newNumC, int newNumT)
          Changes the array size to the new dimensions
 void setNameReference(NameReference nr)
           
static void setToIdentityMatrix(double[][] values)
           
 void setValue(int ic, int it, double value)
           
 void setValues(double[][] matrix)
           
 void setValues(Double2DArray incoming)
           
static double[][] squnch(double[][] matrix, double[][] result)
          flip matrix both ways
static void swapColumns(double[][] d, int first, int second)
           
static java.lang.String toString(double[][] matrix)
           
static java.lang.String toStringRC(double[][] matrix)
           
static double[][] transpose(double[][] matrix)
          borrowed from rhetenor.MatrixUtil
static double[][] transpose(double[][] matrix, double[][] result)
          borrowed from rhetenor.MatrixUtil
 void zeroArray()
           
static void zeroArray(double[][] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Double2DArray

public Double2DArray(int numC,
                     int numT)

Double2DArray

public Double2DArray(double[][] input)
Method Detail

clone

public static double[][] clone(double[][] d)

dispose

public void dispose()

numFullColumns

public static int numFullColumns(double[][] matrix)

numFullRows

public static int numFullRows(double[][] matrix)

getValue

public double getValue(int ic,
                       int it)

getValues

public double[] getValues(int ic)

getMatrix

public double[][] getMatrix()

setValue

public void setValue(int ic,
                     int it,
                     double value)

setValues

public void setValues(Double2DArray incoming)

setValues

public void setValues(double[][] matrix)

zeroArray

public void zeroArray()

zeroArray

public static void zeroArray(double[][] values)

deassignArray

public void deassignArray()

deassignArray

public static void deassignArray(double[][] values)

setToIdentityMatrix

public static void setToIdentityMatrix(double[][] values)

resetSize

public void resetSize(int newNumC,
                      int newNumT)
Changes the array size to the new dimensions


maximum

public static double maximum(double[][] values,
                             boolean ignoreUncombinable)

minimum

public static double minimum(double[][] values,
                             boolean ignoreUncombinable)

maximumInColumn

public static double maximumInColumn(double[][] values,
                                     int column)

minimumInColumn

public static double minimumInColumn(double[][] values,
                                     int column)

multiply

public static double[][] multiply(double[][] matrix1,
                                  double[][] matrix2,
                                  double[][] result)
borrowed from rhetenor.MatrixUtil


transpose

public static double[][] transpose(double[][] matrix)
borrowed from rhetenor.MatrixUtil


transpose

public static double[][] transpose(double[][] matrix,
                                   double[][] result)
borrowed from rhetenor.MatrixUtil


squnch

public static double[][] squnch(double[][] matrix,
                                double[][] result)
flip matrix both ways


getSizeC

public int getSizeC()

getSizeT

public int getSizeT()

swapColumns

public static void swapColumns(double[][] d,
                               int first,
                               int second)

moveColumns

public static void moveColumns(double[][] d,
                               int starting,
                               int num,
                               int justAfter)

setNameReference

public void setNameReference(NameReference nr)

getNameReference

public NameReference getNameReference()

getName

public java.lang.String getName()

toString

public static java.lang.String toString(double[][] matrix)

toStringRC

public static java.lang.String toStringRC(double[][] matrix)