edu.wisc.ssec.mcidasv.data.adde.sgp4
Class MathUtils

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.data.adde.sgp4.MathUtils

public class MathUtils
extends Object

Various Math functions; many of them for vector and matrix operations for 3 dimensions.


Constructor Summary
MathUtils()
           
 
Method Summary
static double dot(double[] a, double[] b)
          dot product for 3D vectors
static double[][] mult(double[][] a, double[][] b)
          multiply two matrices 3x3
static double norm(double[] a)
          vector 2-norm
static double[] sub(double[] a, double[] b)
          vector subtraction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathUtils

public MathUtils()
Method Detail

norm

public static double norm(double[] a)
vector 2-norm

Parameters:
a - vector of length 3
Returns:
norm(a)

dot

public static double dot(double[] a,
                         double[] b)
dot product for 3D vectors

Parameters:
a - 3x1 vector
b - 3x1 vector
Returns:
a dot b

mult

public static double[][] mult(double[][] a,
                              double[][] b)
multiply two matrices 3x3

Parameters:
a - 3x3 matrix
b - 3x3 matrix
Returns:
a x b

sub

public static double[] sub(double[] a,
                           double[] b)
vector subtraction

Parameters:
a - vector of length 3
b - vector of length 3
Returns:
a-b