コード例 #1
0
ファイル: Boundfloat.php プロジェクト: Grummfy/Central
 /**
  * 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();
 }
コード例 #2
0
ファイル: Constfloat.php プロジェクト: Grummfy/Central
 /**
  * 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;
 }