Object

org.atnos.origami

folds

Related Doc: package origami

Permalink

object folds

List of predefined Folds

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def all[A](f: (A) ⇒ Boolean): Fold[NoFx, A, Boolean] { type S = Either[Boolean,Boolean] }

    Permalink

    returns

    return true if the list is empty or if all elements are true, use a Either state to indicate early failure

  5. def any[A](f: (A) ⇒ Boolean): Fold[NoFx, A, Boolean] { type S = Either[Boolean,Boolean] }

    Permalink

    returns

    return false if the list is empty or if all elements are false, use a Either state to indicate early success

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def count[A]: FoldState[A, Int]

    Permalink

    returns

    fold to count elements

  9. def countLong[A]: FoldState[A, Long]

    Permalink

    returns

    fold to count elements

  10. def countLongOf[A](predicate: (A) ⇒ Boolean): FoldState[A, Long]

    Permalink

    returns

    fold to count elements

  11. def countOf[A](predicate: (A) ⇒ Boolean): FoldState[A, Int]

    Permalink

    returns

    fold to count elements

  12. def countUnique[A]: FoldId[A, Int]

    Permalink

    returns

    fold to count the number of unique elements

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def first[A]: FoldState[A, Option[A]]

    Permalink

    returns

    the first element

  17. def firstN[A](n: Int): Fold[NoFx, A, List[A]] { type S = scala.collection.mutable.ListBuffer[A] }

    Permalink

    returns

    the first n elements

  18. def flips[A]: Fold[NoFx, A, Int] { type S = Int }

    Permalink

    returns

    the number of times an element changes its value

  19. def flipsLong[A]: Fold[NoFx, A, Long] { type S = Long }

    Permalink

    returns

    the number of times an element changes its value

  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def gradient[A, V](implicit arg0: Numeric[A], arg1: Numeric[V]): FoldId[(A, V), Double]

    Permalink

    returns

    gradient of a given variable A, compared to another V

  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def last[A]: FoldState[A, Option[A]]

    Permalink

    returns

    the last element

  25. def lastN[A](n: Int): Fold[NoFx, A, List[A]] { type S = scala.collection.mutable.ListBuffer[A] }

    Permalink

    returns

    the last n elements

  26. def lift[A, U](f: (A) ⇒ U): Fold[NoFx, A, Option[U]] { type S = Option[A] }

    Permalink

    lift a function to a fold that applies f to the last element

  27. def list[A]: Fold[NoFx, A, List[A]]

    Permalink

    returns

    a Fold which simply accumulates elements into a List

  28. def mean[N](implicit arg0: Fractional[N]): FoldId[N, N] { type S = (N, Int) }

    Permalink

    returns

    the mean of elements

  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def onlineStddev[N](implicit arg0: Fractional[N]): FoldId[N, (Int, N, Double)]

    Permalink

    returns

    the number of elements, mean and standard deviation

  33. def onlineUnbiasedVariance[N](implicit arg0: Fractional[N]): FoldId[N, (Int, N, N)]

    Permalink

    returns

    the number of elements, mean and unbiased variance

  34. def onlineVariance[N](implicit arg0: Fractional[N]): FoldId[N, (Int, N, N)]

    Permalink

    returns

    the number of elements, mean and variance

  35. def onlineVariation[N](implicit arg0: Fractional[N]): FoldId[N, (Int, N, N)]

    Permalink

    returns

    the number of elements, mean and variation

  36. def plus[N](implicit arg0: Numeric[N]): FoldState[N, N]

    Permalink

    returns

    a plus fold from a Num

  37. def plusBy[A, N](f: (A) ⇒ N)(implicit arg0: Numeric[N]): FoldState[A, N]

    Permalink

    returns

    a plus fold from a mapping to a Num

  38. def proportion[A](predicate: (A) ⇒ Boolean): FoldId[A, Double]

    Permalink

    returns

    the proportion of elements satisfying a given predicate

  39. def randomDouble[A]: Fold[NoFx, A, Option[Double]] { type S = (scala.util.Random, Option[Double]) }

    Permalink

    a fold where the current state is a random Double

  40. def randomDoubleWithSeed[A](seed: Long): Fold[NoFx, A, Option[Double]] { type S = (scala.util.Random, Option[Double]) }

    Permalink

    a fold where the current state is a random Double

  41. def randomInt[A]: Fold[NoFx, A, Option[Int]] { type S = (scala.util.Random, Option[Int]) }

    Permalink

    a fold where the current state is a random Int

  42. def randomIntWithSeed[A](seed: Long): Fold[NoFx, A, Option[Int]] { type S = (scala.util.Random, Option[Int]) }

    Permalink

    a fold where the current state is a random Int

  43. def randomWithGeneratorAndFunction[A, R](random: Random, f: (Random) ⇒ R): Fold[NoFx, A, Option[R]] { type S = (scala.util.Random, Option[R]) }

    Permalink

    create a fold for a mutable Random object

  44. def reservoirSampling[A]: Fold[NoFx, A, Option[A]] { type S = (scala.util.Random, Int, Option[A]) }

    Permalink

    return an arbitrary streamed element so that each element has the same probability be chosen

  45. def stddev[N](implicit arg0: Fractional[N]): FoldId[N, Double]

    Permalink

    returns

    the number of elements, mean and standard deviation

  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def times[N](implicit arg0: Numeric[N]): FoldState[N, N]

    Permalink

    returns

    a times fold from a Num

  48. def timesBy[A, N](f: (A) ⇒ N)(implicit arg0: Numeric[N]): FoldState[A, N]

    Permalink

    returns

    a times fold from a mapping to a Num

  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped