This commit is contained in:
ahmed committed 2022-11-12 15:57:16 +03:00
1 parent 1637f453fb
commit 68d0ca1873
4 files changed
+52 -34

No files matched your search

@@ -35,9 +35,9 @@ namespace Esiur.Analysis.Statistics
public static double RMS(this double[] x)
{
var r = Math.Sqrt(x.Sum(x => x * x) / x.Length);
if (double.IsNaN(r))
Console.WriteLine();
var r = Math.Sqrt(x.Sum(x =>(float) x * (float) x) / x.Length);
//if (double.IsNaN(r) || double.IsInfinity(r))
// Console.WriteLine();
return r;
}