Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * 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;
 }