proportion

fun proportion(value: T): Double(source)

Returns the proportion of observations equal to value (count / totalCount).

Returns 0.0 if no observations have been added.

Return

the proportion in 0.0, 1.0, or 0.0 if empty.

Parameters

value

the value to query.