Package may.bits

Class VectorBits

  • java.lang.Object
    • may.bits.VectorBits

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

      Constructor and Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void addTo(double[] out, double[] in) 
      static void checkLengths(double[] v1, double[] v2) 
      static void divideBy(double[] out, double[] in) 
      static double euclideanDistance(double[] v1, double[] v2) 
      static void multiplyBy(double[] out, double[] in) 
      static double[] scaled(double[] v, double factor) 
      static void subtractFrom(double[] out, double[] in) 
      static double sum(double[] v) 
      • Methods inherited from class java.lang.Object

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

      • VectorBits

        public VectorBits()
    • Method Detail

      • checkLengths

        public static void checkLengths(double[] v1,
                                        double[] v2)
      • sum

        public static double sum(double[] v)
      • multiplyBy

        public static void multiplyBy(double[] out,
                                      double[] in)
      • divideBy

        public static void divideBy(double[] out,
                                    double[] in)
      • addTo

        public static void addTo(double[] out,
                                 double[] in)
      • subtractFrom

        public static void subtractFrom(double[] out,
                                        double[] in)
      • scaled

        public static double[] scaled(double[] v,
                                      double factor)
      • euclideanDistance

        public static double euclideanDistance(double[] v1,
                                               double[] v2)