Packages

package util

The util package contains classes, traits and objects for basic utility functions.

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

Package Members

  1. package bld

    The bld package contains traits and objects for generating source code for memory mapped arrays.

Type Members

  1. class BiMap[K, V] extends AnyRef

    The BiMap class maps keys to values and values to keys.

    The BiMap class maps keys to values and values to keys.

    K

    the key type

    V

    the value type

  2. class BpTreeMap[K, V] extends AbstractMap[K, V] with SortedMap[K, V] with DefaultSerializable

    The BpTreeMap class provides B+Tree maps.

    The BpTreeMap class provides B+Tree maps. B+Trees are used as multi-level index structures that provide efficient access for both point queries and range queries.

    See also

    docs.scala-lang.org/overviews/collections/concrete-mutable-collection-classes.html

    www.scala-lang.org/api/current/#scala.collection.mutable.MapLike ------------------------------------------------------------------------------

  3. class CircularQueue[A] extends AnyRef

    The CircularQueue provides a circular queue that can be used to store the latest 'cap' elements.

  4. class EasyWriter extends Writer

    The EasyWriter class makes it easy to switch between writing to standard output and a (log) file.

  5. trait Error extends AnyRef

    The Error trait is used to report errors showing the class and method within which the error or flaw occurred.

    The Error trait is used to report errors showing the class and method within which the error or flaw occurred. For performance reasons, 'getClass' is commented out. Uncomment to include this information.

  6. trait Identifiable extends Error

    The Identifiable trait provides unique identification for simulation components, entities and events.

    The Identifiable trait provides unique identification for simulation components, entities and events. Includes a mandatory id and an optional name.

  7. trait Locatable extends Error

    The Locatable trait provides location information/coordinates for objects (e.g., Components).

  8. trait Matchable extends AnyRef

    The Matchable trait serves as a bases for string pattern matchers.

  9. class MemoryMappedFile extends AnyRef

    The MemoryMappedFile class provides support for memory-mapped files.

    The MemoryMappedFile class provides support for memory-mapped files. This version works for Array [Byte].

  10. class MemoryMappedFileD extends AnyRef

    The MemoryMappedFileD class provides support for memory-mapped files.

    The MemoryMappedFileD class provides support for memory-mapped files. This version works for Double

  11. class MergeSortIndirect extends AnyRef

    The MergeSortIndirect class provides an implementation of Indirect Merge Sort, a version of mergesort that does not re-arrange the array, but modifies an Int array called 'perm' such that 'perm(i)' is the index of the i-th smallest entry in the array (i.e., a(perm(i)) <= a(perm(i+1)).

    The MergeSortIndirect class provides an implementation of Indirect Merge Sort, a version of mergesort that does not re-arrange the array, but modifies an Int array called 'perm' such that 'perm(i)' is the index of the i-th smallest entry in the array (i.e., a(perm(i)) <= a(perm(i+1)). The 'isort' method returns the permutation that sorts array 'a' in 'perm'. Will indirectly sort any type supported by the Vec_Elem less-than operator.

    See also

    scalation.linalgebra.Vec_Elem

  12. class MultiSet[T] extends ListBuffer[T]

    The MultiSet class provides an implementation for Union, Intersection and Subset for the generic MultiSet data type that extends ListBuffer.

  13. class Node[K] extends Error

    The Node class defines a splittable node type with methods for finding entries (keys and values).

  14. trait PQItem extends Identifiable

    The PQItem trait should be mixed in for items going on a PQueue.

  15. class PQueue[T <: PQItem] extends ReArray[T] with Serializable

    The PQueue class provides a simple linear implementation for priority queues.

    The PQueue class provides a simple linear implementation for priority queues. Once bug in scala 2.8 if fixed, may wish to switch to logarithmic implementation in scala.collection.mutable.PriorityQueue.

  16. trait PackageInfo extends AnyRef

    The PackageInfo trait provides methods to retrieve meta-data about packages.

  17. class PatMatcher extends MatchResult with Matchable with Error

    The PatMatcher class provides a simple means for using Java regular expressions.

    The PatMatcher class provides a simple means for using Java regular expressions. Following the Facade design pattern, it combines functionality from both Pattern and Matcher. A faster alternative is PatMatcherB, see below.

  18. class PriorityQueue[A] extends AbstractIterable[A] with Iterable[A] with IterableOps[A, Iterable, PriorityQueue[A]] with StrictOptimizedIterableOps[A, Iterable, PriorityQueue[A]] with Builder[A, PriorityQueue[A]] with Cloneable[PriorityQueue[A]] with Growable[A] with Serializable

    The PriorityQueues class implements priority queues using a heap.

    The PriorityQueues class implements priority queues using a heap. To prioritize elements of type A there must be an implicit Ordering [A] available at creation.

    If multiple elements have the same priority in the ordering of this PriorityQueue, no guarantees are made regarding the order in which elements are returned by dequeue or dequeueAll. In particular, that means this class does not guarantee first in first out behaviour that may be incorrectly inferred from the Queue part of the name of this class.

    Only the dequeue and dequeueAll methods will return elements in priority order (while removing elements from the heap). Standard collection methods including drop, iterator, and toString will remove or traverse the heap in whichever order seems most convenient.

    Therefore, printing a PriorityQueue will not reveal the priority order of the elements, though the highest-priority element will be printed first. To print the elements in order, one must duplicate the PriorityQueue (by using clone, for instance) and then dequeue them:

    A

    type of the elements in this priority queue.

    Example:
    1. val pq = collection.mutable.PriorityQueue(1, 2, 5, 3, 7)
      println(pq)                  // elements probably not in order
      println(pq.clone.dequeueAll) // prints ArraySeq(7, 5, 3, 2, 1)
  19. class ReArray[A] extends AbstractSeq[A] with IndexedSeq[A] with Serializable

    The ReArray class provides an implementation of mutable, resizable/dynamic arrays.

    The ReArray class provides an implementation of mutable, resizable/dynamic arrays. It is based on Scala's ResizableArray trait with additions and modifications. Preliminary testing has shown it to be faster than its competition: ArrayList and ArrayBuffer. ------------------------------------------------------------------------------------------- Added methods: 'shiftLeft', 'shiftLeft2', 'shiftRight', 'shiftRight2' and 'expand'. ------------------------------------------------------------------------------------------- Modified methods: 'reduceToSize': modified for performance reasons; instead of decreasing the size0 by 1 in a while loop and setting elements to null, it just decrements the size0 variable. FIX: possible minor memory leak 'companion': modified to return null as it is not required by our implementation; the ReArray object does not extend SeqFactory and thus 'newBuilder [A]' is absent. 'update': modified to catch the IndexOutOfBoundsException' and automatically expand the array. 'constructor': modified to take in the initial length and a normal Array; by doing this we can easily convert an object of type Array to a ReArray as the internal 'array' is changed from AnyRef to type A'. ------------------------------------------------------------------------------------------- Modified variables: 'array': the type is changed to A from AnyRef; this helps in assigning an Array [A] to a ReArray [A]; the initial value is changed to check if '_array' is null. 'size0': the initial value is changed to take care if '_array' is null. -------------------------------------------------------------------------------------------

  20. class Sorting[T] extends AnyRef

    The Sorting class provides direct and indirect methods to:

    The Sorting class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort large arrays using MergeSort (slower than quicksort, but stable) sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is generic.

    See also

    SortingC for a version of this class specialized for Complex.

    SortingD for a version of this class specialized for Double.

    SortingI for a version of this class specialized for Int.

    SortingL for a version of this class specialized for Long.

    SortingQ for a version of this class specialized for Rational.

    SortingR for a version of this class specialized for Real.

    SortingS for a version of this class specialized for StrNum.

  21. class SortingC extends AnyRef

    The SortingC class provides direct and indirect methods to:

    The SortingC class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Complex.

    See also

    Sorting for a generic version of this class.

  22. class SortingD extends AnyRef

    The SortingD class provides direct and indirect methods to:

    The SortingD class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Double.

    See also

    Sorting for a generic version of this class.

  23. class SortingI extends AnyRef

    The SortingI class provides direct and indirect methods to:

    The SortingI class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Int.

    See also

    Sorting for a generic version of this class.

  24. class SortingL extends AnyRef

    The SortingL class provides direct and indirect methods to:

    The SortingL class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Long.

    See also

    Sorting for a generic version of this class.

  25. class SortingQ extends AnyRef

    The SortingQ class provides direct and indirect methods to:

    The SortingQ class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Rational.

    See also

    Sorting for a generic version of this class.

  26. class SortingR extends AnyRef

    The SortingR class provides direct and indirect methods to:

    The SortingR class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Real.

    See also

    Sorting for a generic version of this class.

  27. class SortingS extends AnyRef

    The SortingS class provides direct and indirect methods to:

    The SortingS class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for StrNum.

    See also

    Sorting for a generic version of this class.

  28. class SortingT extends AnyRef

    The SortingT class provides direct and indirect methods to:

    The SortingT class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for TimeNum.

    See also

    Sorting for a generic version of this class.

  29. class Wildcard extends Matchable

    The Wildcard value class provides an implementation for wildcard string matching that checks if the 'pattern' string matches against a given 'self' string based on single (CHAR_WILD_ONE) and/or multiple (CHAR_WILD_MANY) wildcards.

Value Members

  1. val NS_PER_MS: Double

    The number of nanoseconds per millisecond

  2. def banner(str: String): Unit

    Print a banner, i.e., a string in a box.

    Print a banner, i.e., a string in a box.

    str

    the string to put in the banner

  3. def gauge[R](block: => R): Double

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'gauge { block }'.

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'gauge { block }'. Return the block of code's elapsed time.

    block

    the block of code to be executed

    See also

    http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala

  4. def getFromURL_File(path: String): Iterator[String]

    Return a line iterator for a line-oriented data source (e.g., CSV file).

    Return a line iterator for a line-oriented data source (e.g., CSV file). The data source is accessed via (1) URL, (2) file's absolute path, or (3) file's relative path (relative to 'DATA-DIR').

    path

    the path name of the data source (via URL or file's path name)

    See also

    stackoverflow.com/questions/5713558/detect-and-extract-url-from-a-string

  5. def removeAt(str: String, i: Int, n: Int = 1): String

    Remove 'n' characters starting at position 'i' in string 'str' and return the new string.

    Remove 'n' characters starting at position 'i' in string 'str' and return the new string.

    str

    the source string

    i

    the starting position for character removal

    n

    the number of characters to remove

  6. def sline(n: Int = 60): String

    Make a string for use in printing a line of '-'s.

    Make a string for use in printing a line of '-'s.

    n

    the number of '-'s to use

  7. def time[R](block: => R): R

    Print the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'time { block }'.

    Print the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'time { block }'. Return any result produced by the block of code.

    block

    the block of code to be executed

    See also

    http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala

  8. def timed[R](block: => R): (R, Double)

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timed { block }'.

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timed { block }'. Return any result produced by the block of code and its elapsed time.

    block

    the block of code to be executed

    See also

    http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala

  9. object AnObject extends Serializable

    The AnObject object is a sample singleton object that is made serialiable via "extends Serializable".

    The AnObject object is a sample singleton object that is made serialiable via "extends Serializable". May also make is serializable by making it a case object.

  10. object BiMapTest extends App

    The BiMapTest object is used the test the BiMap class.

    The BiMapTest object is used the test the BiMap class. > runMain scalation.util.BiMapTest

  11. object BinarySearch

    The BinarySearch object provides a method for binary search.

  12. object BpTreeMapTest extends App

    The BpTreeMapTest object is used to test the BpTreeMap class by inserting increasing key values.

    The BpTreeMapTest object is used to test the BpTreeMap class by inserting increasing key values. > run-main scalation.util.BpTreeMapTest

  13. object BpTreeMapTest2 extends App

    The BpTreeMapTest2 object is used to test the BpTreeMap class by inserting random key values.

    The BpTreeMapTest2 object is used to test the BpTreeMap class by inserting random key values. > run-main scalation.util.BpTreeMapTest2

  14. object CircularQueueTest extends App

    The CircularQueueTest object is used to test the CircularQueue class.

    The CircularQueueTest object is used to test the CircularQueue class. > runMain scalation.util.CircularQueueTest

  15. object CommentExtractor extends App

    The CommentExtractor object is used to extract comments from source code (for example to send it to a spell checker).

    The CommentExtractor object is used to extract comments from source code (for example to send it to a spell checker). It reads from standard input and writes to standard output.

    See also

    http://ostermiller.org/findcomment.html > runMain scalation.util.CommentExtractor

  16. object EasyWriterTest extends App

    The EasyWriterTest object is used to test the EasyWriter class.

    The EasyWriterTest object is used to test the EasyWriter class. It will write into a file, unless there is a command-line argument. > runMain scalation.util.EasyWriterTest

  17. object FloatLiteral extends App

    The FloatLiteral object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".

    The FloatLiteral object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".

    See also

    http://stackoverflow.com/questions/9655080/scala-operator-oddity "In scala 2.9 and before, 2. is interpreted as 2.0 so the ambiguous dot denotes a float literal. You should explicitly call the method by using the syntax (2).+(2). The ambiguous floating point syntax has been be deprecated since scala 2.10."

  18. object Identifiable

    The Identifiable object is used to generate unique identifiers.

  19. object MemoryMappedFileDTest extends App

    The MemoryMappedFileDTest is used to test the MemoryMappedFileD class.

    The MemoryMappedFileDTest is used to test the MemoryMappedFileD class. > runMain scalation.util.MemoryMappedFileDTest

  20. object MemoryMappedFileTest extends App

    The MemoryMappedFileTest is used to test the MemoryMappedFile class.

    The MemoryMappedFileTest is used to test the MemoryMappedFile class. > runMain scalation.util.MemoryMappedFileTest

  21. object MergeSortIndirectTest extends App

    The MergeSortIndirectTest is used to test the MergeSortIndirect class.

    The MergeSortIndirectTest is used to test the MergeSortIndirect class. This test illustrates sorting multiple types. > runMain scalation.util.MergeSortIndirectTest

  22. object MergeSortIndirectTest2 extends App

    The MergeSortIndirectTest2 is used to test the MergeSortIndirect class.

    The MergeSortIndirectTest2 is used to test the MergeSortIndirect class. This test illustrates sorting multiple columns. > runMain scalation.util.MergeSortIndirectTest2

  23. object Monitor

    The Monitor object is used to trace the actions/events in the models.

  24. object MultiSet extends Serializable

    The MultiSet object is the companion object for the MultiSet' class.

  25. object MultiSetTest extends App

    The MultiSetTest object is used to test the MultiSet class.

    The MultiSetTest object is used to test the MultiSet class. > runMain scalation.util.MultiSetTest

  26. object NodeTest extends App

    The NodeTest object is used to test the Node class.

    The NodeTest object is used to test the Node class. > runMain scalation.util.NodeTest

  27. object ObjectSerialization extends App

    The ObjectSerialization object is used to serialize a Scala singleton object.

    The ObjectSerialization object is used to serialize a Scala singleton object. > runMain scalation.util.ObjectSerialization

  28. object PQueueTest extends App

    The PQueueTest object is used to test the PQueue class.

    The PQueueTest object is used to test the PQueue class. > runMain scalation.util.PQueueTest

  29. object PatMatcherTest extends App

    The PatMatcherTest object is used to test the PatMatcher vs.

    The PatMatcherTest object is used to test the PatMatcher vs. PatMatcherB classes. It compares the match results and performance of Java and Brics regex pattern matchers.

    See also

    http://lh3lh3.users.sourceforge.net/reb.shtml > runMain scalation.util.PatMatcherTest

  30. object PriorityQueue extends SortedIterableFactory[PriorityQueue]

    The PriorityQueue object ...

    The PriorityQueue object ...

    Annotations
    @SerialVersionUID()
  31. object QuasiQuoteTest extends App

    The QuasiQuoteTest object is used to test how Quasi-Quotes can be used for code generation.

    The QuasiQuoteTest object is used to test how Quasi-Quotes can be used for code generation. FIX: generate class files (.class) rather than execute the code > runMain scalation.util.QuasiQuoteTest

  32. object ReArray extends Serializable

    The ReArray object is the companion object for the ReArray class.

  33. object ReArrayTest extends App

    The ReArrayTest object tests the operations provided by ReArrayTest.

    The ReArrayTest object tests the operations provided by ReArrayTest. > run-main scalation.util.ReArrayTest

  34. object RunSpellCheck extends App

    The RunSpellCheck object is used to check the spelling of the a given package.

    The RunSpellCheck object is used to check the spelling of the a given package. The package directory (relative path) is entered as a command-line argument. Ex: 'scalation/math' > runMain scalation.util.RunSpellCheck <package directory>

  35. object Sorting

    The Sorting companion object provides shortcuts for calling methods from the Sorting class.

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

  36. object SortingC

    The SortingC companion object provides shortcuts for calling methods from the SortingC class.

  37. object SortingCTest extends App

    The SortingCTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingC class.

  38. object SortingCTest2 extends App

    The SortingCTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingC class.

  39. object SortingCTest3 extends App

    The SortingCTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingC class.

  40. object SortingCTest4 extends App

    The SortingCTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingC class.

    The SortingCTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingC class. The sort is in decreasing order.

  41. object SortingCTest5 extends App

    The SortingCTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingC class.

    The SortingCTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingC class. The sort is in decreasing order.

  42. object SortingD

    The SortingD companion object provides shortcuts for calling methods from the SortingD class.

  43. object SortingDTest extends App

    The SortingDTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingD class.

  44. object SortingDTest2 extends App

    The SortingDTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingD class.

  45. object SortingDTest3 extends App

    The SortingDTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingD class.

  46. object SortingDTest4 extends App

    The SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingD class.

    The SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingD class. The sort is in decreasing order.

  47. object SortingDTest5 extends App

    The SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingD class.

    The SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingD class. The sort is in decreasing order.

  48. object SortingI

    The SortingI companion object provides shortcuts for calling methods from the SortingI class.

  49. object SortingITest extends App

    The SortingITest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingI class.

  50. object SortingITest2 extends App

    The SortingITest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingI class.

  51. object SortingITest3 extends App

    The SortingITest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingI class.

  52. object SortingITest4 extends App

    The SortingITest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingI class.

    The SortingITest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingI class. The sort is in decreasing order.

  53. object SortingITest5 extends App

    The SortingITest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingI class.

    The SortingITest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingI class. The sort is in decreasing order.

  54. object SortingL

    The SortingL companion object provides shortcuts for calling methods from the SortingL class.

  55. object SortingLTest extends App

    The SortingLTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingL class.

  56. object SortingLTest2 extends App

    The SortingLTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingL class.

  57. object SortingLTest3 extends App

    The SortingLTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingL class.

  58. object SortingLTest4 extends App

    The SortingLTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingL class.

    The SortingLTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingL class. The sort is in decreasing order.

  59. object SortingLTest5 extends App

    The SortingLTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingL class.

    The SortingLTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingL class. The sort is in decreasing order.

  60. object SortingQ

    The SortingQ companion object provides shortcuts for calling methods from the SortingQ class.

  61. object SortingQTest extends App

    The SortingQTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingQ class.

  62. object SortingQTest2 extends App

    The SortingQTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingQ class.

  63. object SortingQTest3 extends App

    The SortingQTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingQ class.

  64. object SortingQTest4 extends App

    The SortingQTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingQ class.

    The SortingQTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingQ class. The sort is in decreasing order.

  65. object SortingQTest5 extends App

    The SortingQTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingQ class.

    The SortingQTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingQ class. The sort is in decreasing order.

  66. object SortingR

    The SortingR companion object provides shortcuts for calling methods from the SortingR class.

  67. object SortingRTest extends App

    The SortingRTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingR class.

  68. object SortingRTest2 extends App

    The SortingRTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingR class.

  69. object SortingRTest3 extends App

    The SortingRTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingR class.

  70. object SortingRTest4 extends App

    The SortingRTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingR class.

    The SortingRTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingR class. The sort is in decreasing order.

  71. object SortingRTest5 extends App

    The SortingRTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingR class.

    The SortingRTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingR class. The sort is in decreasing order.

  72. object SortingS

    The SortingS companion object provides shortcuts for calling methods from the SortingS class.

  73. object SortingSTest extends App

    The SortingSTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingS class.

  74. object SortingSTest2 extends App

    The SortingSTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingS class.

  75. object SortingSTest3 extends App

    The SortingSTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingS class.

  76. object SortingSTest4 extends App

    The SortingSTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingS class.

    The SortingSTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingS class. The sort is in decreasing order.

  77. object SortingSTest5 extends App

    The SortingSTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingS class.

    The SortingSTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingS class. The sort is in decreasing order.

  78. object SortingT

    The SortingT companion object provides shortcuts for calling methods from the SortingT class.

  79. object SortingTTest extends App

    The SortingTTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingT class.

  80. object SortingTTest2 extends App

    The SortingTTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingT class.

  81. object SortingTTest3 extends App

    The SortingTTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingT class.

  82. object SortingTTest4 extends App

    The SortingTTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingT class.

    The SortingTTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingT class. The sort is in decreasing order.

  83. object SortingTTest5 extends App

    The SortingTTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingT class.

    The SortingTTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingT class. The sort is in decreasing order.

  84. object SortingTest extends App

    The SortingTest object is used to test the correctness and performance of the methods in the Sorting class that find 'k'-medians.

    The SortingTest object is used to test the correctness and performance of the methods in the Sorting class that find 'k'-medians. > runMain scalation.util.SortingTest

  85. object SortingTest2 extends App

    The SortingTest2 object is used to test the correctness and performance of the sorting methods in the Sorting class.

    The SortingTest2 object is used to test the correctness and performance of the sorting methods in the Sorting class. > runMain scalation.util.SortingTest2

  86. object SortingTest3 extends App

    The SortingTest3 object is used to test the correctness of top-k (smallest) and bottom-k (largest) algorithms that are based on partial selection sort.

    The SortingTest3 object is used to test the correctness of top-k (smallest) and bottom-k (largest) algorithms that are based on partial selection sort. > runMain scalation.util.SortingTest3

  87. object SortingTest4 extends App

    The SortingTest4 object is used to test Merge Sort.

    The SortingTest4 object is used to test Merge Sort. > runMain scalation.util.SortingTest4

  88. object SpellCheck extends Error

    The SpellCheck object is used to check the spelling in source code comments.

    The SpellCheck object is used to check the spelling in source code comments. If not using Linux, may need to replace path for 'DICTIONARY'. Note, okay to use '/' since the dictionary location is system-dependent anyway.

  89. object SpellCheckTest extends App

    The SpellCheckTest object is used to test the SpellCheck object.

    The SpellCheckTest object is used to test the SpellCheck object. run-main scalation.util.SpellCheckTest

  90. object Swap

    The Swap class provides a method to swap elements in an Array or ArrayBuffer.

    The Swap class provides a method to swap elements in an Array or ArrayBuffer. Note, ArrayBuffer is resizable (similar to Java's ArrayList).

  91. object SwapTest extends App

    This SwapTest is used to test the Swap object.

    This SwapTest is used to test the Swap object. > runMain scalation.util.SwapTest

  92. object TestBreak extends App

    The TestBreak object provides an example of how to use 'breaks' in Scala.

    The TestBreak object provides an example of how to use 'breaks' in Scala.

    See also

    http://daily-scala.blogspot.com/2010/04/breaks.html

    http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/scala/util/control/Breaks.html

  93. object Unicode

    The Unicode object provides arrays to facilitate the use of Unicode.

    The Unicode object provides arrays to facilitate the use of Unicode. ScalaTion currently uses a few UTF-16 characters, see code below. Most UTF-16 characters are 2 bytes (16 bits). Extended characters are encoded in 4 bytes. ScalaTion limits characters to the range 'U+0000' to 'U+2bff'. Developers should test Unicode symbols here before trying them in the code.

    See also

    en.wikipedia.org/wiki/UTF-16

    www.tamasoft.co.jp/en/general-info/unicode.html

    en.wikipedia.org/wiki/List_of_Unicode_characters

    arxiv.org/abs/1112.1751 ------------------------------------------------------------------------------ Classes using Unicode include the following:

    scalation.analytics.Regression

    scalation.linalgebra.bld.BldVector

    scalation.math (package object)

    scalation.math.Complex

    scalation.math.Rational

    scalation.math.Real

    scalation.math.StrNum

    scalation.columnar_db.Relation

  94. object UnicodeTest extends App

    The UnicodeTest object is used to the Unicode object.

    The UnicodeTest object is used to the Unicode object. > runMain scalation.util.UnicodeTest

  95. object Wildcard

    The Wildcard object defines useful contants for the Wildcard class.

  96. object WildcardTest extends App

    The WildcardTest object is used to test the Wildcard class.

    The WildcardTest object is used to test the Wildcard class. > runMain scalation.util.WildcardTest

Inherited from AnyRef

Inherited from Any

Ungrouped