Class AbstractArrayDistance<T extends Number>

    • Constructor Detail

      • AbstractArrayDistance

        public AbstractArrayDistance()
    • Method Detail

      • getDistanceName

        protected abstract String getDistanceName()
        Returns the name of the distance.
        Returns:
        the name
      • getLength

        public int getLength()
        Returns the length of the stored arrays.
        Specified by:
        getLength in interface EqualLengthArrayStatistic
        Returns:
        the length of the arrays, -1 if none stored
      • getMin

        public int getMin()
        Returns the minimum number of arrays that need to be present. -1 for unbounded.
        Specified by:
        getMin in class AbstractArrayStatistic<T extends Number>
        Returns:
        the minimum number, -1 for unbounded
      • getMax

        public int getMax()
        Returns the maximum number of arrays that need to be present. -1 for unbounded.
        Specified by:
        getMax in class AbstractArrayStatistic<T extends Number>
        Returns:
        the maximum number, -1 for unbounded
      • calcDistance

        protected abstract double calcDistance​(double[] first,
                                               double[] second)
        Calculates the distance between the two arrays.
        Parameters:
        first - the first array
        second - the second array
        Returns:
        the distance
      • createCellHeader

        protected String createCellHeader()
        Creates the cell header prefix to use.
        Returns:
        the prefix