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 distanceL1(a: List[Double], b: List[Double]): Double

    Permalink

    L1 distance between two vectors

  10. def distanceL3(a: List[Double], b: List[Double]): Double

    Permalink

    L3 distance between two vectors

  11. def distanceMaxNorm(a: List[Double], b: List[Double]): Double

    Permalink

    MaxNorm distance between two vectors

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

    Permalink

    Dot product using lists as vectors

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

    Permalink

    Shannon entropy

    Shannon entropy

    pc

    Ratio of class instances

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

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

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

    Permalink

    The factorial function x!

  17. def finalize(): Unit

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

    Permalink

    Takes the log with a lower limit

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

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

    Permalink

    Gini impurity

    Gini impurity

    pc

    Ratio of class instances

  21. def hashCode(): Int

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

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

    Permalink

    Logistic function

  24. def maxNorm(a: List[Double]): Double

    Permalink

    Vector max norm norm using list as vector

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

    Permalink

    Returns the mean of a list of values

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

    Permalink

    Returns the median of a list of values

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

    Permalink

    Vector subtraction using lists as vectors

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def normL1(a: List[Double]): Double

    Permalink

    Vector L1 norm using list as vector

  31. def normL3(a: List[Double]): Double

    Permalink

    Vector L3 norm using list as vector

  32. def normal(x: Double, m: Double, s: Double): Double

    Permalink

    Normal (Gaussian) function

    Normal (Gaussian) function

    x

    Abscissa

    m

    Mean

    s

    Sigma

  33. final def notify(): Unit

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

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

    Permalink

    Vector addition using lists as vectors

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

    Permalink

    Rectangular function

    Rectangular function

    x

    Abscissa

    f

    Lower bound

    t

    Upper bound

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

    Permalink

    Rounds to specified amount of digits

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

    Permalink

    Returns the standard deviation of a list of values

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  41. 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

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

    Permalink

    Returns the variance of a list of values

  43. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped