3

我需要编写一个应用程序来在 DataGrid 上运行统计分析。Pp 和 Ppk 在 C# 中很容易用标准差计算。但是一些数字,例如用于 Cp 和 Cpk 的估计偏差 (rBar/d2) - 这太复杂(对我来说)无法编码。是否有我可以实施的现有库、商业库或开源库?

4

3 回答 3

2

极端优化可能是您正在寻找的东西。

编辑SPC 图表
怎么样?

于 2011-02-25T08:18:05.153 回答
1

你可能想看看 Sho,它是一个处理数据的工具,它提供了很多数学库。

http://channel9.msdn.com/Blogs/Charles/John-Platt-Introduction-to-Sho

http://research.microsoft.com/en-us/projects/sho/

于 2011-02-25T08:21:28.020 回答
-1

我使用 MathNet.Numerics 进行这些类型的计算。
https://www.nuget.org/packages/MathNet.Numerics/

https://numerics.mathdotnet.com/
cp 和 cpk 的示例:


public class ProcessPerformance
{
    public static ProcessPerformanceResult Calculate(double[] data,double lsl,double usl,double sigma =3.0,double cpSigma=6.0)
    {
        if(data.Count() ppkLsl ? ppkLsl : ppkUsl;
        var cP = (usl - lsl) / (descriptiveStatistics.StandardDeviation * cpSigma);
        var median = MathNet.Numerics.Statistics.Statistics.Median(data);
        return new ProcessPerformanceResult(){Cp=cP,Cpk=cPk,Median= median, DescriptiveStatistics=descriptiveStatistics};
        
    }
    public class ProcessPerformanceResult
    {
        //https://en.wikipedia.org/wiki/Process_capability_index
        public double Cpk { get; set; }
        public double Cp {get;set;}
        public double Median {get;set;}
        public MathNet.Numerics.Statistics.DescriptiveStatistics DescriptiveStatistics {get;set;}
    }
}
于 2021-08-27T06:48:23.183 回答