diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-06-24 14:51:22 +0200 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-06-24 14:51:41 +0200 |
commit | 68c1f0d5f25f75d052320a8acf07e934fca3fcf1 (patch) | |
tree | 800d289033496752bd91d809f940e2cf32f60bca /Model | |
parent | 306cf4d106f8387914a4fcffc8a372ab5987bc2e (diff) | |
download | Praspel-68c1f0d5f25f75d052320a8acf07e934fca3fcf1.zip Praspel-68c1f0d5f25f75d052320a8acf07e934fca3fcf1.tar.gz Praspel-68c1f0d5f25f75d052320a8acf07e934fca3fcf1.tar.bz2 |
Use the sample() method of Hoa\Realdom\Disjunction
Diffstat (limited to 'Model')
-rw-r--r-- | Model/Variable.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Model/Variable.php b/Model/Variable.php index 06be3dc..a7ebf4f 100644 --- a/Model/Variable.php +++ b/Model/Variable.php @@ -272,15 +272,13 @@ class Variable * Call the sample() method on realistic domains. * * @access public + * @param \Hoa\Math\Sampler $sampler Sampler. * @return mixed * @throw \Hoa\Realdom\Exception */ - public function sample ( ) { + public function sample ( \Hoa\Math\Sampler $sampler = null ) { - // @TODO - $domains = &$this->getDomains(); - - return $domains[0]->sample(); + return $this->getDomains()->sample($sampler); } /** |