Packages

package stats

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class Stats(min: Double, max: Double, mean: Double, stdDev: Double, median: Double) extends Product with Serializable
  2. class ThreadUnsafeDoubleUniformReservoir extends AnyRef

    Class inspired by codahale's metrics UniformReservoir and UniformSnapshot, implementing Vitter's R Algorithm.

    Class inspired by codahale's metrics UniformReservoir and UniformSnapshot, implementing Vitter's R Algorithm.

    Reimplementing our own version for two main reasons:

    • Using doubles instead of longs (no clue if it's actually a good idea: your mileage may vary)
    • Don't want to have an external dependency for a reasonably small thing.
    • compute all snapshot values in a single function call
    • keep the "real" min/max

    Otherwise, we try to follow the original behaviour.

    It is named 'ThreadUnsafe' to underline that unlike the original from codahale, it's totally thread unsafe:

    These classes are (very) mutable and intended for re-use in a single-threaded context.

    You have been warned.

Value Members

  1. object Stats extends Serializable
  2. object ThreadUnsafeDoubleUniformReservoir

Ungrouped