Пример #1
0
 /**
  * Add data.
  *
  * Add a data point to calculation.
  * @param float $x Some real value.
  * @param float $y Some real value corresponding to $x.
  */
 public function addData($x, $y)
 {
     //list( $x, $y ) = $this->weightData( $x, $y );
     // Take the natural log of x and y before adding this data.
     $x = log($x);
     $y = log($y);
     parent::addData($x, $y);
 }
Пример #2
0
 /**
  * Add data.
  *
  * Add a data point to calculation.
  * @param float $x Some real value.
  * @param float $y Some real value corresponding to $x.
  */
 public function addData($x, $y)
 {
     // Take the natural log of x before adding this data.
     $x = log($x);
     parent::addData($x, $y);
 }