Class

framian.reduce

Median

Related Doc: package reduce

Permalink

final class Median[A] extends SimpleReducer[A, A]

Source
Median.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Median
  2. SimpleReducer
  3. Reducer
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Median()(implicit arg0: Field[A], arg1: Order[A], arg2: ClassTag[A])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to any2stringadd[Median[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Median[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to ArrowAssoc[Median[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. implicit def chooseRandomPivot(arr: Array[A]): A

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (Median[A]) ⇒ Boolean, msg: ⇒ Any): Median[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to Ensuring[Median[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (Median[A]) ⇒ Boolean): Median[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to Ensuring[Median[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): Median[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to Ensuring[Median[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): Median[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to Ensuring[Median[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  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 findKMedian(arr: Array[A], kOrValue: Either[Int, A], k2OrValue: Either[Int, A])(implicit choosePivot: (Array[A]) ⇒ A): (A, A)

    Permalink
    Annotations
    @tailrec()
  17. def findMedian(arr: Array[A])(implicit choosePivot: (Array[A]) ⇒ A): A

    Permalink
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to StringFormat[Median[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def reduce(data: Array[A]): Cell[A]

    Permalink
    Definition Classes
    MedianSimpleReducer
  26. final def reduce(column: Column[A], indices: Array[Int], start: Int, end: Int): Cell[A]

    Permalink

    Reduce the given column of values to a cell using only the indexes in given array slice.

    Reduce the given column of values to a cell using only the indexes in given array slice.

    indices, start, and end represent an array slice. The following must hold:

    • 0 <= start
    • end <= indices.length
    • start <= end

    and the slice is [start:end), inclusive of start and exclusive of end.

    Let i: Int where start <= i and i < end, then

    column(indices(i)) match {
        case Value(v) => // 1.
        case NA => // 2.
        case NM => // 3.
    }
    1. In the case of a Value, the value should be included in the reduction.
    2. In the case of NA, the reduction should skip.
    3. In the case of NM, the reduction should terminate with NM.
    column

    the column of values is the source of the reduction

    indices

    the array of column indexes to reduce over

    start

    the start of the array slice on the indices

    end

    the end of the array slice on the indices

    returns

    the result of the reduction as a Cell

    Definition Classes
    SimpleReducerReducer
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (Median[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Median[A] to ArrowAssoc[Median[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from SimpleReducer[A, A]

Inherited from Reducer[A, A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Median[A] to any2stringadd[Median[A]]

Inherited by implicit conversion StringFormat from Median[A] to StringFormat[Median[A]]

Inherited by implicit conversion Ensuring from Median[A] to Ensuring[Median[A]]

Inherited by implicit conversion ArrowAssoc from Median[A] to ArrowAssoc[Median[A]]

Ungrouped