Object

infcalcs

MathFuncs

Related Doc: package infcalcs

Permalink

object MathFuncs

Contains a handful of useful mathematical functions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MathFuncs
  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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def avg(t: Seq[Double]): Double

    Permalink

    Computes the mean of a sequence of doubles

  6. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def freqToProb[A](implicit n: Numeric[A]): (TraversableOnce[A]) ⇒ TraversableOnce[Double]

    Permalink

    Converts frequencies to probabilities by normalizing each count by the vector sum.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def intBiG(muTuple: Pair[Double], sigmaTuple: Pair[Double], pTuple: Pair[Double])(x: Double): Double

    Permalink

    Cumulative distribution function of a bimodal Gaussian distribution.

    Cumulative distribution function of a bimodal Gaussian distribution.

    Given a pair of means and a pair of standard deviations for two Gaussian distributions; and a pair of weights specifying the balance of the two Gaussians, yields a function for evaluating the CDF of the bimodal distribution determined by these parameters.

    muTuple

    The means of the two Gaussians.

    sigmaTuple

    The standard deviations of the two Gaussians.

    pTuple

    The weights of the two Gaussians in the bimodal distribution.

    x

    Value for evaluating CDF(x)

    returns

    CDF(x) for the bimodal Gaussian distribution.

  14. def intUniG(mu: Double, sigma: Double)(x: Double): Double

    Permalink

    Cumulative distribution function of a unimodal Gaussian distribution.

    Cumulative distribution function of a unimodal Gaussian distribution.

    Given the mean and standard deviation of a unimodal Gaussian, yields a function for evaluating the CDF of the Gaussian at a point x.

    mu

    Mean of the Gaussian distribution.

    sigma

    Standard deviation of the Gaussian distribution.

    x

    Value for evaluating CDF(x)

    returns

    CDF(x) for the unimodal Gaussian distribution.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def meanAndConf(ls: Iterable[Double]): Pair[Double]

    Permalink

    Given a list of doubles, returns the mean and 95% confidence interval around the mean assuming normally distributed data.

    Given a list of doubles, returns the mean and 95% confidence interval around the mean assuming normally distributed data.

    ls

    List of doubles

    returns

    (mean, 95% confidence interval)

  17. def meanAndConfBS(ls: Seq[Double]): (Double, Pair[Double])

    Permalink

    Like meanAndConf but for a bootstrapped data set

    Like meanAndConf but for a bootstrapped data set

    ls

    values

    returns

    (mean, values corresponding to 95% confidence interval)

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped