~.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.

Companion
object
Source
Math.scala
class Object
trait 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]