org.bdgenomics.avocado.util

LogUtils

object LogUtils extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LogUtils
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  12. def logAdditiveInverse(logP: Double): Double

    Computes the log of the additive inverse of a log value.

    Computes the log of the additive inverse of a log value. E.g., given log p, we compute log(1 - p).

    logP

    The log of the value.

    returns

    The log of 1 minus the value.

    Note

    From the perspective of numerical precision, we expect logP to be less than 0. This implies that P is expected to be between 0 and 1, non-inclusive.

  13. def logNormalize(pArray: Array[Double]): Array[Double]

    Normalizes an array of log likelihoods.

    Normalizes an array of log likelihoods.

    pArray

    The array to normalize.

    returns

    Returns a normalized array.

  14. def logSum(logP: Double, logQ: Double): Double

    Given two log scaled values, compute the log of the sum of the values.

    Given two log scaled values, compute the log of the sum of the values. E.g., log(p + q) = logSum(log(p), log(q))

    logP

    The log of the first value.

    logQ

    The log of the second value.

    returns

    The log of the sums of the first value and the second value.

    Note

    This function is not sensitive to the relative value of P and Q. We check inside of the function to determine whether P or Q is larger.

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

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

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

    Definition Classes
    AnyRef
  18. def sumLogProbabilities(pArray: Array[Double]): Double

    Given an array of log probabilities, computes the log of the sum of the probabilities.

    Given an array of log probabilities, computes the log of the sum of the probabilities. E.g., computes:

    log(p0 + ... + pn) = sumLogProbabilities(Array(log(p0), ..., log(pn))) ~ log(Array.map(exp(_)).sum)

    pArray

    Array of log probabilities to sum.

    returns

    The log of the sum of the probabilities.

    Note

    This function is not numerically sensitive to the order of the values in the array. The array is copied and sorted before the sum is applied.

    See also

    logSum

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

    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped