public function percentileRanks($alias, $field, array $values, $script = null, $compression = null)
    {
        $aggregation = new PercentileRanksAggregation($alias, $field, $values, $script, $compression);

        $this->append($aggregation);
    }
public function percentileRanks($alias, $field, array $values, $script = null, $compression = null)
    {
        $aggregation = new PercentileRanksAggregation($alias, $field, $values, $script, $compression);

        $this->append($aggregation);
    }
public function percentileRanks ( $ alias , $ field , array $ values , $ script = null , $ compression = null ) { $ aggregation = new PercentileRanksAggregation ( $ alias , $ field , $ values , $ script , $ compression ) ; $ this -> append ( $ aggregation ) ; }
Add an percentileRanks aggregate.

@param $alias
@param string $field
@param array  $values
@param null   $script
@param null   $compression
Add an percentileRanks aggregate .