Doctrine\MongoDB\Aggregation\Stage\Project::avg PHP 메소드

avg() 공개 메소드

Returns the average value of the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. Ignores nun-numeric values.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/avg/
또한 보기: Expr::avg
부터: 1.3
public avg ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
리턴 Operator
    public function avg($expression1)
    {
        $this->expr->avg(func_num_args() === 1 ? $expression1 : func_get_args());
        return $this;
    }