refactor variables name for resolve compile warnings ...

This commit is contained in:
2024-07-02 05:51:27 +03:30
parent 5d2bb7b294
commit 84d61a513e
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -2782,11 +2782,11 @@ struct XLinearRegression
m_work.data[r].sumXY = 0;
//
for (int k = 1; k < m_work.period && r >= k; k++)
for (int _k = 1; _k < m_work.period && r >= _k; _k++)
{
//
m_work.data[r].sumY += m_work.data[r - k].value;
m_work.data[r].sumXY += k * m_work.data[r - k].value;
m_work.data[r].sumY += m_work.data[r - _k].value;
m_work.data[r].sumXY += _k * m_work.data[r - _k].value;
}
}