Exemplo n.º 1
0
 /**
  * Sample one new value.
  *
  * @param   \Hoa\Math\Sampler  $sampler    Sampler.
  * @return  mixed
  */
 protected function _sample(Math\Sampler $sampler)
 {
     return $sampler->getFloat();
 }
Exemplo n.º 2
0
 /**
  * Sample one new value.
  *
  * @param   \Hoa\Math\Sampler  $sampler    Sampler.
  * @return  mixed
  */
 protected function _sample(Math\Sampler $sampler)
 {
     return $sampler->getFloat($this['lower']->sample($sampler), $this['upper']->sample($sampler));
 }