bijnum
Class BIJShortMatrix

java.lang.Object
  extended by bijnum.BIJShortMatrix

public class BIJShortMatrix
extends java.lang.Object

Implements methods for large short matrices. Simplified subset of BIJmatrix. Syntax is kept similar to Matlab, including order of operations. Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.


Constructor Summary
BIJShortMatrix()
           
 
Method Summary
static short[] add(short[] v, float scalar)
          Add a scalar to all entries in a matrix.
static short[] copy(short[] v)
          Copy a vector.
static float mean(short[] v)
           
static float[] minmax(short[] v)
           
static float[] minmax(short[][] m)
           
static java.lang.String toString(short[] v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BIJShortMatrix

public BIJShortMatrix()
Method Detail

minmax

public static float[] minmax(short[] v)

minmax

public static float[] minmax(short[][] m)

mean

public static float mean(short[] v)

copy

public static short[] copy(short[] v)
Copy a vector.

Parameters:
v - a float[] vector.
Returns:
a copy of v.

add

public static short[] add(short[] v,
                          float scalar)
Add a scalar to all entries in a matrix.

Parameters:
m - a float[][] matrix.
scalar - a scalar to subtract.
Returns:
the subtracted matrix.

toString

public static java.lang.String toString(short[] v)