2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-04 04:18:22 +00:00
This commit is contained in:
2023-04-20 15:55:20 +03:00
parent 0ceaee88aa
commit a95b68c610
46 changed files with 2361 additions and 14 deletions

View File

@@ -28,8 +28,11 @@ namespace Esiur.Analysis.Statistics
double rt = 0;
for (var i = 0; i < n; i++)
{
rt += (x[i] - X) * (y[i] - Y);
rt += (x[i] * y[i] - Y * x[i] - X * y[i] + X * Y);// - X) * (y[i] - Y);
}
return rt / n;
}