RBNutilities
Class MyMathOps

java.lang.Object
  extended by RBNutilities.MyMathOps

public class MyMathOps
extends java.lang.Object


Constructor Summary
MyMathOps()
           
 
Method Summary
static double[] arrayAdd(double[] a1, double[] a2)
           
static void arrayNormalize(double[] a)
           
static double[] arrayScalMult(double[] a, double l)
           
static double ce(double[] p, double[] q)
           
static double euclDist(double[] a, double[] b)
          Computes the Euclidean distance between a and b (must be of same length)
static int[] indexto01array(int ind, int size)
           
static int[] intarrayadd(int[] a, int[] b)
           
static int intPow(int k, int l)
          returns k to the power of l
static double roundDouble(double roundthis, int digits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyMathOps

public MyMathOps()
Method Detail

arrayAdd

public static double[] arrayAdd(double[] a1,
                                double[] a2)

arrayNormalize

public static void arrayNormalize(double[] a)

arrayScalMult

public static double[] arrayScalMult(double[] a,
                                     double l)

ce

public static double ce(double[] p,
                        double[] q)

euclDist

public static double euclDist(double[] a,
                              double[] b)
Computes the Euclidean distance between a and b (must be of same length)


intPow

public static int intPow(int k,
                         int l)
returns k to the power of l


intarrayadd

public static int[] intarrayadd(int[] a,
                                int[] b)

indexto01array

public static int[] indexto01array(int ind,
                                   int size)

roundDouble

public static double roundDouble(double roundthis,
                                 int digits)