Mean

class Mean<T>(group: Ring<T>, division: (T, count: Int) -> T) : ComposableStatistic<T, Pair<T, Int>, T> , BlockingStatistic<T, T>

Arithmetic mean

Constructors

Mean
Link copied to clipboard
common
fun <T> Mean(group: Ring<T>, division: (T, count: Int) -> T)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

composeIntermediate
Link copied to clipboard
common
open suspend override fun composeIntermediate(first: Pair<T, Int>, second: Pair<T, Int>): Pair<T, Int>
computeIntermediate
Link copied to clipboard
common
open suspend override fun computeIntermediate(data: Buffer<T>): Pair<T, Int>
evaluate
Link copied to clipboard
common
open suspend override fun evaluate(data: Buffer<T>): T
evaluateBlocking
Link copied to clipboard
common
open override fun evaluateBlocking(data: Buffer<T>): T
toResult
Link copied to clipboard
common
open suspend override fun toResult(intermediate: Pair<T, Int>): T

Sources

common source
Link copied to clipboard