Packages

c

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, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KollFlitzIterable
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
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. def allDistinct: Boolean

    Determines whether all elements of this collection are unique, in other words, whether no two equal elements exist.

    Determines whether all elements of this collection are unique, in other words, whether no two equal elements exist. For an empty collection, this is true.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. 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.

  7. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. def mean(implicit num: Fractional[A]): A

    Calculates the numerical mean value based on the supplied Fractional type class.

  10. 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.

  11. 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

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

    Produces a multi-map of this collection, mapping each element to keys and values based on the supplied functions.

    Produces a multi-map of this collection, mapping each element to keys and values based on the supplied functions. A multi-map is a Map where the values are collections.

    K

    the key type

    V

    the value collection's element type

    Values

    the collection type of the values

    key

    the function that calculates the key from an element.

    value

    the function that calculates a single value element from an element.

    cbfv

    the builder factory for the values collection

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

    Calculates the numerical variance value based on the supplied Fractional type class.

Inherited from AnyVal

Inherited from Any

Ungrouped