Documentation of 'com.datumbox.framework.core.common.utilities.SelectKth' Java class
SelectKth
com.datumbox.framework.core.common.utilities

Class SelectKth



  • public class SelectKth
    extends java.lang.Object
    The SelectKth class provides a fast implementation of a Selection algorithm.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SelectKth() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.Double largest(java.util.Iterator<java.lang.Double> elements, int k)
      Selects the kth largest element from an iterable object.
      static java.lang.Double smallest(java.util.Iterator<java.lang.Double> elements, int k)
      Selects the kth smallest element from an iterable object.
      • Methods inherited from class java.lang.Object

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

      • SelectKth

        public SelectKth()
    • Method Detail

      • largest

        public static java.lang.Double largest(java.util.Iterator<java.lang.Double> elements,
                                               int k)
        Selects the kth largest element from an iterable object.
        Parameters:
        elements -
        k -
        Returns:
      • smallest

        public static java.lang.Double smallest(java.util.Iterator<java.lang.Double> elements,
                                                int k)
        Selects the kth smallest element from an iterable object.
        Parameters:
        elements -
        k -
        Returns:

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.