src/Regression/ExponentialRegression.php 1 location
|
@@ 32-34 (lines=3) @@
|
| 29 |
|
throw new RegressionException('The input sequence is not set'); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
if (count($this->sourceSequence) < $this->dimension) { |
| 33 |
|
throw new RegressionException(sprintf('The dimension of the sequence of at least %s', $this->dimension)); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
foreach ($this->sourceSequence as $k => $v) { |
| 37 |
|
if ($v[1] !== null) { |
src/Regression/LinearRegression.php 1 location
|
@@ 31-33 (lines=3) @@
|
| 28 |
|
throw new RegressionException('The input sequence is not set'); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
if (count($this->sourceSequence) < $this->dimension) { |
| 32 |
|
throw new RegressionException(sprintf('The dimension of the sequence of at least %s', $this->dimension)); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
$k = 0; |
| 36 |
|
|
src/Regression/LogarithmicRegression.php 1 location
|
@@ 29-31 (lines=3) @@
|
| 26 |
|
throw new RegressionException('The input sequence is not set'); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
if (count($this->sourceSequence) < $this->dimension) { |
| 30 |
|
throw new RegressionException(sprintf('The dimension of the sequence of at least %s', $this->dimension)); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
$k = 0; |
| 34 |
|
|
src/Regression/PowerRegression.php 1 location
|
@@ 31-33 (lines=3) @@
|
| 28 |
|
throw new RegressionException('The input sequence is not set'); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
if (count($this->sourceSequence) < $this->dimension) { |
| 32 |
|
throw new RegressionException(sprintf('The dimension of the sequence of at least %s', $this->dimension)); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
$k = 0; |
| 36 |
|
|