src/Jsonq.php
public function avg($column = null)
    {
        $this->prepare();

        $count = $this->count();
        $total = $this->sum($column);

        return ($total/$count);
    }
public function avg($column = null)
    {
        $this->prepare();

        $count = $this->count();
        $total = $this->sum($column);

        return ($total/$count);
    }
public function avg ( $ column = null ) { $ this -> prepare ( ) ; $ count = $ this -> count ( ) ; $ total = $ this -> sum ( $ column ) ; return ( $ total / $ count ) ; }
getting average value from prepared data

@param int $column
@return string
@throws ConditionNotAllowedException
getting average value from prepared data