org.saddle.stats

VecStats

trait VecStats[A] extends AnyRef

Statistical methods made available on numeric Vec objects via enrichment.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. VecStats
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def argmax: Int

    Integer offset of the minimum element of the Vec, if one exists, or else -1

  2. abstract def argmin: Int

    Integer offset of the minimum element of the Vec, if one exists, or else -1

  3. abstract def count: Int

    Count of the non-NA elements of the Vec

  4. abstract def countif(test: (A) ⇒ Boolean): Int

    Counts the non-NA elements of the Vec subject to passing the predicate function

    Counts the non-NA elements of the Vec subject to passing the predicate function

    test

    A function from A to Boolean

  5. abstract def demeaned: Vec[Double]

    Return a copy of a numeric Vec with its values demeaned according to the mean function

  6. abstract def geomean: Double

    Return the geometric median of the values in the Vec, ignoring NA

  7. abstract def kurt: Double

    Return the sample kurtosis of the values in the Vec, ignoring NA

  8. abstract def logsum: Double

    Return the sum of the natural log of each element, ignoring NA values

  9. abstract def max: Option[A]

    Maximum element of the Vec, if one exists, or else None

  10. abstract def mean: Double

    Return the mean (average) of the values in the Vec, ignoring NA

  11. abstract def median: Double

    Return the median of the values in the Vec, ignoring NA

  12. abstract def min: Option[A]

    Minimum element of the Vec, if one exists, or else None

  13. abstract def percentile(tile: Double, method: PctMethod = PctMethod.NIST): Double

    Return the percentile of the values at a particular threshold, ignoring NA

    Return the percentile of the values at a particular threshold, ignoring NA

    tile

    The percentile in [0, 100] at which to compute the threshold

    method

    The percentile method; one of PctMethod

  14. abstract def prod: A

    Product of all the values in the Vec, ignoring NA values

  15. abstract def rank(tie: RankTie = RankTie.Avg, ascending: Boolean = true): Vec[Double]

    Return a Vec of ranks corresponding to a Vec of numeric values.

    Return a Vec of ranks corresponding to a Vec of numeric values.

    tie

    Method with which to break ties; a RankTie

    ascending

    Boolean, default true, whether to give lower values larger rank

  16. abstract def skew: Double

    Return the sample skewness of the values in the Vec, ignoring NA

  17. abstract def sum: A

    Sum of the elements of the Vec, ignoring NA values

  18. abstract def variance: Double

    Return the sample variance of the values in the Vec, ignoring NA

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

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

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

    Definition Classes
    Any
  6. def _demeaned(r: Vec[A], subOp: (A, Double) ⇒ Double): Vec[Double]

    Attributes
    protected
  7. def _kurt(r: Vec[A], subOp: (A, Double) ⇒ Double): Double

    Attributes
    protected
  8. def _median(r: Vec[A])(implicit n: NUM[A]): Double

    Attributes
    protected
  9. def _percentile(v: Vec[Double], tile: Double, method: PctMethod)(implicit n: NUM[A]): Double

    Attributes
    protected
  10. def _rank(v: Array[Double], tie: RankTie, ascending: Boolean): Vec[Double]

    Attributes
    protected
  11. def _skew(r: Vec[A], subOp: (A, Double) ⇒ Double): Double

    Attributes
    protected
  12. def _variance(r: Vec[A], subOp: (A, Double) ⇒ Double): Double

    Attributes
    protected
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. final def getClass(): java.lang.Class[_]

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

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

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

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def stdev: Double

    Return the sample standard deviation of values in the Vec, ignoring NA

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any