geotrellis

util

package util

Visibility
  1. Public
  2. All

Value Members

  1. object Filesystem extends AnyRef

  2. object Timer extends AnyRef

    Utility class for timing the execution time of a function.

  3. object Units extends AnyRef

  4. def pairwise [A] (as: List[A], sofar: List[A])(f: (A, A) ⇒ A): List[A]

    This function uses an associative binary function "f" to combine elements of a List[A] pairwise into a shorter List[A].

    This function uses an associative binary function "f" to combine elements of a List[A] pairwise into a shorter List[A].

    For instance, List(1,2,3,4,5) results in List(5, f(3, 4), f(1, 2)).

    Definition Classes
    package
    Annotations
    @tailrec()
  5. def reducePairwise [A] (as: List[A])(f: (A, A) ⇒ A): Option[A]

    This function uses an associative binary function "f" to combine the elements of a List[A] into a Option[A].

    This function uses an associative binary function "f" to combine the elements of a List[A] into a Option[A].

    If the list is empty, None is returned. If the list is non-empty, Some[A] will be returned.

    For example, List(1,2,3,4)(f) results in Some(f(f(3, 4), f(1, 2))).

    Definition Classes
    package
    Annotations
    @tailrec()