object Sorting
The Sorting
companion object provides shortcuts for calling methods from
the Sorting
class. Only works for Array [Double]
.
- Alphabetic
- By Inheritance
- Sorting
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
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()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated