/** * Predicate whether the sampled value belongs to the realistic domains. * * @param mixed $q Sampled value. * @return boolean */ protected function _predicate($q) { return parent::_predicate($q) && $this['value'] === $q; }
/** * Predicate whether the sampled value belongs to the realistic domains. * * @param mixed $q Sampled value. * @return boolean */ protected function _predicate($q) { return parent::_predicate($q) && $q >= $this['lower']->getConstantValue() && $q <= $this['upper']->getConstantValue(); }