compareTo

open operator override fun compareTo(other: WeightedStatistic): Int

Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.

The natural ordering is based on the weighted average

Return

Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object based on the average

Parameters

other

The statistic to compare this statistic to