final case class KahanSum(sum: Double = 0, c: Double = 0) extends Product with Serializable
Aggregator state.
- sum
the accumulator
- c
a running compensation for lost low-order bits
- Note
cannot use generics for double vs float due to perf: https://stackoverflow.com/questions/4753629/how-do-i-make-a-class-generic-for-all-numeric-types
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KahanSum
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All