public function percentile($alias, $field, $percents, $script = null, $compression = null)
    {
        $aggregation = new PercentilesAggregation($alias, $field, $percents, $script, $compression);

        $this->append($aggregation);
    }
public function percentile($alias, $field, $percents, $script = null, $compression = null)
    {
        $aggregation = new PercentilesAggregation($alias, $field, $percents, $script, $compression);

        $this->append($aggregation);
    }
public function percentile ( $ alias , $ field , $ percents , $ script = null , $ compression = null ) { $ aggregation = new PercentilesAggregation ( $ alias , $ field , $ percents , $ script , $ compression ) ; $ this -> append ( $ aggregation ) ; }
Add an percentile aggregate.

@param $alias
@param string $field
@param $percents
@param null $script
@param null $compression
Add an percentile aggregate .