コード例 #1
0
ファイル: ExponentialRV.php プロジェクト: EdenChan/Instances
 /**
  * Constructs an ExponentialRV.
  */
 public function __construct($mu = 1.0)
 {
     parent::__construct();
     $this->mu = $mu;
 }
コード例 #2
0
ファイル: SimpleRV.php プロジェクト: EdenChan/Instances
 /**
  * Constructs a SimpleRV.
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #3
0
ファイル: UniformRV.php プロジェクト: EdenChan/Instances
 /**
  * Constructs a UniformRV.
  *
  * @param float $u The lower bound.
  * @param float $v The upper bound.
  */
 public function __construct($u = 0.0, $v = 1.0)
 {
     parent::__construct();
     $this->u = $u;
     $this->v = $v;
 }