mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
Genetic
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user