Packages

object Sorting

The Sorting companion object provides shortcuts for calling methods from the Sorting class. Only works for Array [Double].

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sorting
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def imedian(a: Array[Double], k: Int): Double

    Find the 'k'-median in array 'a', non-destructively.

    Find the 'k'-median in array 'a', non-destructively.

    a

    the array to search

    k

    specification for k-th smallest element

  11. def iqsort(a: Array[Double]): Array[Int]

    Use Quicksort to indirectly sort array 'a'.

    Use Quicksort to indirectly sort array 'a'.

    a

    the array to indirectly sort

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def iselsort(a: Array[Double]): Array[Int]

    Use Selection Sort to indirectly sort array 'a'.

    Use Selection Sort to indirectly sort array 'a'.

    a

    the array to indirectly sort

  14. def median(a: Array[Double], k_: Int = -1): Double

    Find the 'k'-median in array 'a'.

    Find the 'k'-median in array 'a'.

    a

    the array to search

    k_

    specification for k-th smallest element

  15. def median3(a1: Double, a2: Double, a3: Double): Double

    Find the median of three unordered numbers.

    Find the median of three unordered numbers.

    a1

    the first number

    a2

    the second number

    a3

    the third number

    Annotations
    @inline()
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def qsort(a: Array[Double]): Unit

    Use Quicksort to sort the array 'a'.

    Use Quicksort to sort the array 'a'.

    a

    the array to sort

  20. def reorder(a: Array[Double], rank: Array[Int]): Array[Double]

    Given the rank order for array 'a', return its elements in that order.

    Given the rank order for array 'a', return its elements in that order. The rank order may be established using indirect sorting.

    a

    the source array

  21. def selsort(a: Array[Double]): Unit

    Use Selection Sort to sort the array 'a'.

    Use Selection Sort to sort the array 'a'.

    a

    the array to sort

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped