#001 初版提交

This commit is contained in:
HM-CN\zhengxuan.zhang
2025-08-04 13:03:33 +08:00
commit 1857eea8a4
390 changed files with 356175 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NSAnalysis
{
public static class EnumerableExtensions
{
public static double StandardDeviation(this IEnumerable<double> values)
{
double avg = values.Average();
double sum = values.Sum(d => Math.Pow(d - avg, 2));
return Math.Sqrt((sum) / (values.Count() - 1));
}
}
}