ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Functions/Function_SPC.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Function_SPC : Samples.BaseForm
{
private Steema.TeeChart.Styles.Line lineSeries1;
private Steema.TeeChart.Styles.Line lineSeries2;
private Steema.TeeChart.Tools.ColorLine colorLine1;
private Steema.TeeChart.Tools.ColorLine colorLine2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.ComponentModel.IContainer components = null;
private void CalcLimits(Steema.TeeChart.Styles.Series Good, Steema.TeeChart.Styles.Series Bad)
{
double sum,sumn, tmp, aux,
lcp,lcn, numtotal, percent;
int n;
this.colorLine1.Value = 0.0;
this.colorLine2.Value = 0.0;
n = 0;
sum = 0.0;
sumn = 0.0;
for (int i = 0;i<Good.Count;i++)
{
percent = (Bad.YValues[i]*Good.YValues[i]/100.0);
numtotal = Good.YValues[i] + percent;
if (numtotal>0)
{
sum += percent/numtotal;
sumn += numtotal;
n++;
}
}
lcp = sum/n;
lcn = sumn/n;
tmp = (lcp*(1.0-lcp))/lcn;
if (tmp>0)
{
aux = 3*Math.Sqrt(tmp); // <-- 3 by square root
this.colorLine1.Value = 100.0*(lcp+aux);
this.colorLine2.Value = 100.0*(lcp-aux);
}
}
public Function_SPC()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。