zoukankan      html  css  js  c++  java
  • C#

    Statistical Process Control 简介

    https://www.cnblogs.com/jeremywucnblog/p/11940736.html

    统计过程控制(Statistical Process Control)是一种借助数理统计方法的过程控制工具。它对生产过程进行分析评价,根据反馈信息及时发现系统性因素出现的征兆,并采取措施消除其影响,使过程维持在仅受随机性因素影响的受控状态,以达到控制质量的目的。

       在企业的生产制造过程中,我们常常需要采集生产数据,然后对数据进行处理,最后对处理好的数据、调度指令或者决策以报表和数据大屏等方式进行呈现,给与领导层合理科学的决策建议。

      本项目主要采用Windows 10 + Visual Studio 2019 + Windows窗体应用(.Net Framework)实现六西格玛模式数据决策和Chart报表模块展示,主要用于继续的学习和研究。

    六西格玛核心算法

    算法参考公式 点我下载 ,利用算法对数据进行处理后,结合Chart模块即可实现Chart报表的展示。

    Chart模块核心代码

     View Code

    //定义图表区域
    this.chartMain.ChartAreas.Clear();
    ChartArea chartArea1 = new ChartArea("C1");
    this.chartMain.ChartAreas.Add(chartArea1);
    //定义存储和显示点的容器
    this.chartMain.Series.Clear();
    Series series1 = new Series("S1");
    series1.ChartArea = "C1";
    this.chartMain.Series.Add(series1);
    //设置图表显示样式
    this.chartMain.ChartAreas[0].AxisY.Minimum = 0;
    this.chartMain.ChartAreas[0].AxisY.Maximum = 100;
    this.chartMain.ChartAreas[0].AxisX.Interval = 5;
    this.chartMain.ChartAreas[0].AxisX.MajorGrid.LineColor = System.Drawing.Color.Silver;
    this.chartMain.ChartAreas[0].AxisY.MajorGrid.LineColor = System.Drawing.Color.Silver;
    //设置标题
    this.chartMain.Titles.Clear();
    this.chartMain.Titles.Add("S01");
    this.chartMain.Titles[0].Text = "XXX显示";
    this.chartMain.Titles[0].ForeColor = Color.Green;
    this.chartMain.Titles[0].Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
    //设置图表显示样式
    this.chartMain.Series[0].Color = Color.Red;
    if (this.cmbChartType.Text.ToString() == "折线图")
    {
    this.chartMain.Titles[0].Text = string.Format("SPC模块-[{0}]功能测试", "折线图");
    this.chartMain.Series[0].ChartType = SeriesChartType.Line;
    }
    else if (this.cmbChartType.Text.ToString() == "波形图")
    {
    this.chartMain.Titles[0].Text = string.Format("SPC模块-[{0}]功能测试", "波形图");
    this.chartMain.Series[0].ChartType = SeriesChartType.Spline;
    }
    this.chartMain.Series[0].Points.Clear();

     

     

    实现效果

  • 相关阅读:
    oppo R9sk 完美root 线刷包+救砖(替换成永久链接)
    android app通知栏权限状态判断及跳转状态栏设置页面
    手把手教你查看android系统源码
    android开发之app在线时长统计sdk开发
    android网络优化之添加缓存给服务器减负
    android——使用Interceptor设置缓存来给服务器减负
    java反射基础应用备注
    android——Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER 解决方案
    android——No matching client found for package错误处理
    go 指针类型
  • 原文地址:https://www.cnblogs.com/lhxsoft/p/14982496.html
Copyright © 2011-2022 走看看