2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2022-11-05 17:48:30 +03:00
parent e83f51f952
commit f1d5b0a38b
12 changed files with 746 additions and 54 deletions

View File

@ -33,7 +33,13 @@ namespace Esiur.Analysis.Statistics
}
public static double RMS(this double[] x) => Math.Sqrt(x.Sum(x => x * x) / x.Length);
public static double RMS(this double[] x)
{
var r = Math.Sqrt(x.Sum(x => x * x) / x.Length);
if (double.IsNaN(r))
Console.WriteLine();
return r;
}
public static double Correlation(this double[] x, double[] y)