Object

utils

Maths

Related Doc: package utils

Permalink

object Maths

Provides auxiliary functions for mathematical operations

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Maths
  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 abs(a: List[Double]): Double

    Permalink

    Vector L2 norm using list as vector

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bernoulli(x: Int, p: Double): Double

    Permalink

    Returns the bernoulli probabilities for an event given a probability for 0

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def distance(a: List[Double], b: List[Double]): Double

    Permalink

    Euclidian distance between two vectors

  9. def dot(a: List[Double], b: List[Double]): Double

    Permalink

    Dot product using lists as vectors

  10. def entropy(pc: List[Double]): Double

    Permalink

    Shannon entropy

    Shannon entropy

    pc

    Ratio of class instances

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def factorial(x: Int): Int

    Permalink

    The factorial function x!

  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def finiteLog(x: Double): Double

    Permalink

    Takes the log with a lower limit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def gini(pc: List[Double]): Double

    Permalink

    Gini impurity

    Gini impurity

    pc

    Ratio of class instances

  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. def logistic(x: Double): Double

    Permalink

    Logistic function

  21. def mean(l: List[Double]): Double

    Permalink

    Returns the mean of a list of values

  22. def median(l: List[Double]): Double

    Permalink

    Returns the median of a list of values

  23. def minus(a: List[Double], b: List[Double]): List[Double]

    Permalink

    Vector subtraction using lists as vectors

  24. def multinomial(x: List[Int], p: List[Double]): Double

    Permalink

    Returns the probability to observe a given histogram

    Returns the probability to observe a given histogram

    x

    Histogram of counts

    p

    Binned probability distribution

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

    Permalink
    Definition Classes
    AnyRef
  26. def normal(x: Double, m: Double, s: Double): Double

    Permalink

    Normal (Gaussian) function

    Normal (Gaussian) function

    x

    Abscissa

    m

    Mean

    s

    Sigma

  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. def plus(a: List[Double], b: List[Double]): List[Double]

    Permalink

    Vector addition using lists as vectors

  30. def rectangular(x: Double, f: Double, t: Double): Double

    Permalink

    Rectangular function

    Rectangular function

    x

    Abscissa

    f

    Lower bound

    t

    Upper bound

  31. def round(a: Double, digits: Int): Double

    Permalink

    Rounds to specified amount of digits

  32. def std(l: List[Double]): Double

    Permalink

    Returns the standard deviation of a list of values

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. def triangular(x: Double, m: Double, w: Double): Double

    Permalink

    Triangular function

    Triangular function

    x

    Abscissa

    m

    Peak position

    w

    Half width at y = 0

  36. def variance(l: List[Double]): Double

    Permalink

    Returns the variance of a list of values

  37. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped