Package

org.hammerlab

math

Permalink

package math

Visibility
  1. Public
  2. All

Type Members

  1. trait Binomial extends Serializable

    Permalink
  2. trait Div extends AnyRef

    Permalink
  3. case class HypergeometricDistribution(N: Long, K: Long, n: Int) extends Product with Serializable

    Permalink

    Implementation of a hypergeometric distribution, modeled after org.apache.commons.math3.distribution.HypergeometricDistribution, but supporting Long parameters.

    Implementation of a hypergeometric distribution, modeled after org.apache.commons.math3.distribution.HypergeometricDistribution, but supporting Long parameters.

    N

    Population size.

    K

    Number of successes.

    n

    Number to sample.

  4. trait Interpolate extends AnyRef

    Permalink
  5. trait Min extends AnyRef

    Permalink
  6. class RoundNumbers[I] extends Iterator[I]

    Permalink

    Emit an exponentially-increasing sequence of integers composed of repetitions of steps scaled by successive powers of base.

  7. trait Steps extends AnyRef

    Permalink

    Some utilities for generating exponential sequences of integers that can be used as e.g.

    Some utilities for generating exponential sequences of integers that can be used as e.g. histogram-bucket boundaries.

  8. trait all extends Binomial with Div with Interpolate with Min with Steps

    Permalink
  9. trait show extends AnyRef

    Permalink

Value Members

  1. object Binomial extends Binomial

    Permalink
  2. object Div

    Permalink
  3. object RoundNumbers

    Permalink

    Constructors.

  4. object Steps extends Steps

    Permalink
  5. object VarNum

    Permalink

    Serialization wrapper for Longs which burns one bit per byte indicating whether any more bytes follow.

    Serialization wrapper for Longs which burns one bit per byte indicating whether any more bytes follow.

    Can utilize less serialized space than naively writing 8-byte Longs in datasets where absolute values tend to be less than 248 more often than they are ≥ 255.

    Long's absolute values correspond to the following number of serialized bytes:

    [ 0, 26): 1 byte [ 26, 213): 2 bytes [213, 220): 3 bytes [220, 227): 4 bytes [227, 234): 5 bytes [234, 241): 6 bytes [241, 248): 7 bytes [248, 255): 8 bytes [255, 2^63): 9 bytes

    The first byte, in addition to its most significant bit indicating whether any more bites follow, uses its second-most-significant bit to represent the sign of the Long.

Ungrouped