~~.Custom.Math.Average

trait Average[A]

Given instance of Math.Average for a particular type, enables this type to participate in calculating average value for streamed instances.

By default Double, Float and opaque numerics of Double and Float allow averaging.

Source
Math.scala
class java.lang.Object
trait scala.Matchable
class Any
class Double.G.Math[A]
class Float.G.Math[A]

Def

def average(s: ~[A]): A
def averageOpt(s: ~[A]): Opt[A]