Documentation of 'edu.uci.jforests.util.MathUtil' Java class
MathUtil
edu.uci.jforests.util

Class MathUtil



  • public class MathUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      MathUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double[][] allocateDoubleMatrix(int m, int n) 
      static void clearDoubleMatrix(double[][] mat) 
      static double[][] cloneDoubleMatrix(double[][] src) 
      static void divideInPlace(float[] vector, float val)
      Divides the second vector from the first one (vector1[i] /= val)
      static double getAvg(double[] arr) 
      static double getAvg(float[] arr) 
      static double getAvg(java.util.List<java.lang.Double> arr) 
      static double getDotProduct(double[] vector1, double[] vector2, int length) 
      static double getDotProduct(float[] vector1, float[] vector2) 
      static double getDotProduct(float[] vector1, float[] vector2, int length) 
      static double getStd(double[] arr) 
      static double getStd(double[] arr, double avg) 
      static double getStd(double[] arr, double avg, int offset, int count) 
      static double getStd(java.util.List<java.lang.Double> arr) 
      static double getStd(java.util.List<java.lang.Double> arr, double avg) 
      static double getVectorSize(double[] arr) 
      static double log2(double value) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MathUtil

        public MathUtil()
    • Method Detail

      • log2

        public static double log2(double value)
      • getAvg

        public static double getAvg(double[] arr)
      • getAvg

        public static double getAvg(float[] arr)
      • getAvg

        public static double getAvg(java.util.List<java.lang.Double> arr)
      • getStd

        public static double getStd(double[] arr)
      • getStd

        public static double getStd(java.util.List<java.lang.Double> arr)
      • getStd

        public static double getStd(double[] arr,
                                    double avg)
      • getStd

        public static double getStd(double[] arr,
                                    double avg,
                                    int offset,
                                    int count)
      • getStd

        public static double getStd(java.util.List<java.lang.Double> arr,
                                    double avg)
      • getVectorSize

        public static double getVectorSize(double[] arr)
      • getDotProduct

        public static double getDotProduct(float[] vector1,
                                           float[] vector2,
                                           int length)
      • getDotProduct

        public static double getDotProduct(double[] vector1,
                                           double[] vector2,
                                           int length)
      • getDotProduct

        public static double getDotProduct(float[] vector1,
                                           float[] vector2)
      • divideInPlace

        public static void divideInPlace(float[] vector,
                                         float val)
        Divides the second vector from the first one (vector1[i] /= val)
        Parameters:
        vector - the input vector.
        val - the denominator
      • allocateDoubleMatrix

        public static double[][] allocateDoubleMatrix(int m,
                                                      int n)
      • clearDoubleMatrix

        public static void clearDoubleMatrix(double[][] mat)
      • cloneDoubleMatrix

        public static double[][] cloneDoubleMatrix(double[][] src)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.