Queryable.php
public function Average( $Func = null )
	{

		$items  = $this->Select( $Func );

		$count  = $items->Count();

		$sum    = 0;

		foreach ( $items as $item ) $sum += $item;

		return $sum / $count;

	}
public function Average( $Func = null )
	{

		$items  = $this->Select( $Func );

		$count  = $items->Count();

		$sum    = 0;

		foreach ( $items as $item ) $sum += $item;

		return $sum / $count;

	}
public function Average ( $ Func = null ) { $ items = $ this -> Select ( $ Func ) ; $ count = $ items -> Count ( ) ; $ sum = 0 ; foreach ( $ items as $ item ) $ sum += $ item ; return $ sum / $ count ; }
Get Average of sequence

@param string|Closure $Func
@return double
Get Average of sequence