mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 13:08:40 +00:00
Bug fixes
This commit is contained in:
parent
0491883aad
commit
1222d53dbc
|
|
@ -894,7 +894,7 @@ class Builder extends BuilderAbstract
|
||||||
|
|
||||||
public function execute()
|
public function execute()
|
||||||
{
|
{
|
||||||
$sth = $this->connection->con->prepare($this->toSQL());
|
$sth = $this->connection->con->prepare($this->toSql());
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
|
||||||
return $sth;
|
return $sth;
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,9 @@ class ClassicalDecomposition
|
||||||
private function computeSeasonalComponent() : array
|
private function computeSeasonalComponent() : array
|
||||||
{
|
{
|
||||||
$seasonalComponent = [];
|
$seasonalComponent = [];
|
||||||
|
$count = count($this->data);
|
||||||
|
|
||||||
for ($i = 0; $i < $this->orderSize; $i++) {
|
for ($i = 0; $i < $this->dataSize; $i++) {
|
||||||
$temp = [];
|
$temp = [];
|
||||||
|
|
||||||
for ($j = $i * $this->order; $j < $count; $j += $this->order) {
|
for ($j = $i * $this->order; $j < $count; $j += $this->order) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user