Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从 0 到超过 1000 的双精度列表。我想将列表转换为正态分布,并将每个条目转换为 0 到 100 之间的数字。我发现了很多关于如何计算均值、标准差、和随机数,但现在还没有将列表转换为正态分布。
var list = new List<double> { ... }; var max = list.Max(); var desiredList = list.Select(p => (p / max) * 100).ToList();