org.saddle

util

package util

Additional utilities that need a home

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Random extends AnyRef

    The Random class provides methods to generate pseudorandom numbers via Marsaglia Xorshift PRNGs, which use simple exclusive-or and bit-shift operations to generate these numbers extremely quickly over long cycles.

Value Members

  1. object Concat extends LowPriorityConcatImplicits

    Provides a way to append two arrays of possibly different types together by intelligently promoting primitive types where possible.

  2. object Random

  3. def buildStr(count: Int, total: Int, callback: (Int) ⇒ String, break: ⇒ String = " ... "): String

    Creates a string out of count number of elements extracted from total elements between offsets [0 .

    Creates a string out of count number of elements extracted from total elements between offsets [0 ... count / 2) and (total - count / 2 ... total), using a callback that generates a string at each offset, and inserting a break string if count > total.

    count

    Number of elements to print

    total

    Total number of elements in sequence

    callback

    Generates a string at each offset

    break

    Produces a string to insert as a break

  4. def grab[T](arr: Seq[T], n: Int): Seq[T]

    Takes n elements from the front and from the back of array

    Takes n elements from the front and from the back of array

    arr

    Array

    n

    Number of elements to take

Inherited from AnyRef

Inherited from Any

Ungrouped