Class PNorm

    • Constructor Detail

      • PNorm

        public PNorm​(int p)
        Creates a new p-norm with the given parameter.
        Parameters:
        p - the parameter of this p-norm.
    • Method Detail

      • norm

        public double norm​(Vector<Double> obj)
        Description copied from interface: Norm
        Returns the norm of the given object
        Parameters:
        obj - some object
        Returns:
        the norm of the object
      • distance

        public double distance​(Vector<Double> obj1,
                               Vector<Double> obj2)
        Description copied from interface: Norm
        The distance between the two object, i.e. the norm of the difference vector.
        Parameters:
        obj1 - some object
        obj2 - some object
        Returns:
        the distance between the two objects