de.sciss.kollflitz.Ops

KollFlitzIterable

implicit final class KollFlitzIterable[A, CC[~] <: Iterable[~]] extends AnyVal

Enrichment methods for any type of collection, sequential or not.

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

Instance Constructors

  1. new KollFlitzIterable(self: CC[A])

Value Members

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

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

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

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def counted: Map[A, Int]

    Produces a map from the input elements to the frequency in which they appear in the input collection.

    Produces a map from the input elements to the frequency in which they appear in the input collection.

    For example: {{ val x = List("a", "a", "b", "a") val m = x.counted }}

    produces Map("a" -> 3, "b" -> 1). The map has a default value of zero, so calling m("c") returns zero.

    returns

    a map with the elements counted.

  6. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  8. def mean(implicit num: Fractional[A]): A

  9. def meanVariance(implicit num: Fractional[A]): (A, A)

    Calculates the mean and variance of the collection.

    Calculates the mean and variance of the collection.

    num

    numerical view of the element type

    returns

    a tuple consisting of _1 mean and _2 variance.

  10. def normalized(implicit num: Fractional[A], cbf: CanBuildFrom[CC[A], A, CC[A]]): CC[A]

    Normalizes the elements by finding the maximum absolute value and dividing each element by this value.

    Normalizes the elements by finding the maximum absolute value and dividing each element by this value.

    If the collection is empty or the maximum absolute value is zero, the original collection is returned.

    num

    numerical view of the element type

  11. val self: CC[A]

  12. def toMultiMap[K, V, Values](key: (A) ⇒ K)(value: (A) ⇒ V)(implicit cbfv: CanBuildFrom[Nothing, V, Values]): Map[K, Values]

  13. def toString(): String

    Definition Classes
    Any
  14. def variance(implicit num: Fractional[A]): A

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped