Documentation of 'org.apache.commons.math3.ml.clustering.DoublePoint' Java class
DoublePoint
org.apache.commons.math3.ml.clustering

Class DoublePoint

  • All Implemented Interfaces:
    java.io.Serializable, Clusterable


    public class DoublePoint
    extends java.lang.Object
    implements Clusterable, java.io.Serializable
    A simple implementation of Clusterable for points with double coordinates.
    Since:
    3.2
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      DoublePoint(double[] point)
      Build an instance wrapping an double array.
      DoublePoint(int[] point)
      Build an instance wrapping an integer array.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object other)
      double[] getPoint()
      Gets the n-dimensional point.
      int hashCode()
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DoublePoint

        public DoublePoint(double[] point)
        Build an instance wrapping an double array.

        The wrapped array is referenced, it is not copied.

        Parameters:
        point - the n-dimensional point in double space
      • DoublePoint

        public DoublePoint(int[] point)
        Build an instance wrapping an integer array.

        The wrapped array is copied to an internal double array.

        Parameters:
        point - the n-dimensional point in integer space
    • Method Detail

      • getPoint

        public double[] getPoint()
        Gets the n-dimensional point.
        Specified by:
        getPoint in interface Clusterable
        Returns:
        the point array
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.