在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
var avg = nums.Average(); //总体方差 var variance = nums.Sum(x => Math.Pow(x - avg, 2))/nums.Count(); //样本方差 var sampleVariance= nums.Sum(x => Math.Pow(x - avg, 2)) / (nums.Count()-1); //总体标准差 var standDeviation = Math.Sqrt(variance); //样本标准差 var sampleDeviation = Math.Sqrt(sampleVariance);
测试代码下载:https://files.cnblogs.com/files/lizhijian/20201009%E6%A0%87%E5%87%86%E5%B7%AE%E8%AE%A1%E7%AE%97.rar
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论