package stats
- Alphabetic
- Public
- All
Type Members
- case class Stats(min: Double, max: Double, mean: Double, stdDev: Double, median: Double) extends Product with Serializable
- 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
- object Stats extends Serializable
- object ThreadUnsafeDoubleUniformReservoir