Lines Matching refs:precision
40 * Set the precision for this aggregation.
42 * @param int|string $precision an integer between 1 and 12, inclusive. Defaults to 5 or distance like 1km, 10m
46 public function setPrecision($precision): self
48 if (!\is_int($precision) && !\is_string($precision)) {
49 throw new \TypeError(\sprintf('Argument 1 passed to "%s()" must be of type int|string, %s given.', __METHOD__, \is_object($precision) ? \get_class($precision) : \gettype($precision)));
52 return $this->setParam('precision', $precision);