<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>quality charts in C# Archives - CenterSpace</title>
	<atom:link href="https://www.centerspace.net/tag/quality-charts-in-c/feed" rel="self" type="application/rss+xml" />
	<link>https://www.centerspace.net/tag/quality-charts-in-c</link>
	<description>.NET numerical class libraries</description>
	<lastBuildDate>Tue, 01 Mar 2016 21:39:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
<site xmlns="com-wordpress:feed-additions:1">104092929</site>	<item>
		<title>Statistical Quality Control Charts</title>
		<link>https://www.centerspace.net/statistical-quality-control-charts</link>
					<comments>https://www.centerspace.net/statistical-quality-control-charts#comments</comments>
		
		<dc:creator><![CDATA[Paul Shirkey]]></dc:creator>
		<pubDate>Wed, 11 Aug 2010 17:33:47 +0000</pubDate>
				<category><![CDATA[NMath Stats Tutorial]]></category>
		<category><![CDATA[attribute quality chart]]></category>
		<category><![CDATA[c-chart]]></category>
		<category><![CDATA[Pareto chart]]></category>
		<category><![CDATA[quality charts in .NET]]></category>
		<category><![CDATA[quality charts in C#]]></category>
		<category><![CDATA[quality control charts]]></category>
		<category><![CDATA[Shewhart charts]]></category>
		<category><![CDATA[statistical quality control charts]]></category>
		<category><![CDATA[u-chart]]></category>
		<category><![CDATA[variable quality chart]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2345</guid>

					<description><![CDATA[<p><img src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart-150x150.png" alt="" title="u-chart"  class="excerpt" /><br />
Statistical quality control charts, or Shewart quality control charts, are used across nearly all sectors of industry to maintain and improve product quality.  Quality control charts provide a means to detect when a time varying process exceeds its historic process variation and needs analysis and/or intervention to remedy the out-of-control process (known as special cause variation).  CenterSpace Software and Nevron have teamed up to create some free code examples for creating Shewart attribute control charts.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/statistical-quality-control-charts">Statistical Quality Control Charts</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Statistical quality control charts, or Shewart quality control charts, are used across nearly all sectors of industry to maintain and improve product quality.  Quality control charts provide a means to detect when a time varying process exceeds its historic process variation and needs analysis and/or intervention to remedy the out-of-control process (known as special cause variation).  These process control charts are independent of any engineering decision-making about the particular process at hand, but are instead based on the statistical nature of the process itself.  This standardized statistical control framework was created and refined by Walter Shewart at Bell Telephone Laboratories from 1925 to his retirement in 1956.  It is this independence of process details that make Mr. Shewart&#8217;s techniques powerful, widely applicable, decision-making aids.</p>
<p>With their ongoing partnership, CenterSpace Software and Nevron have teamed up to create some free code examples for creating Shewart charts.</p>
<h3>Quality Chart Types</h3>
<p>Statistical quality control charts can be generally divided into two categories, those for tracking discrete attribute variables (e.g. a pass/fail test), and those for tracking continuous process variables (e.g. pipe diameter, temperature).</p>
<table>
<tbody>
<tr>
<th> Chart</th>
<th> Process Observation</th>
<th> Process Observation Variable</th>
</tr>
<tr>
<td>X-bar and R chart</td>
<td>Quality characteristic measurement within one subgroup</td>
<td>Variables</td>
</tr>
<tr>
<td>X-bar and s chart</td>
<td>Quality characteristic measurement within one subgroup</td>
<td>Variables</td>
</tr>
<tr>
<td>Shewhart individuals control chart (I-R chart or I chart)</td>
<td>Quality characteristic measurement for one observation</td>
<td>Variables</td>
</tr>
<tr>
<td>Three-way chart</td>
<td>Quality characteristic measurement within one subgroup</td>
<td>Variables</td>
</tr>
<tr>
<td>p-chart</td>
<td>Fraction nonconforming within one subgroup</td>
<td>Attributes</td>
</tr>
<tr>
<td>np-chart</td>
<td>Number nonconforming within one subgroup</td>
<td>Attributes</td>
</tr>
<tr>
<td>c-chart</td>
<td>Number of nonconformances within one subgroup</td>
<td>Attributes</td>
</tr>
<tr>
<td>u-chart</td>
<td>Nonconformances per unit within one subgroup</td>
<td>Attributes</td>
</tr>
</tbody>
</table>
<p>The statistical modeling language, &#8220;R&#8221;, provides a package (qcc) for creating these and other statistical process control charts.  This R package was created by Luca Scrucca and is actively maintained and can be found in CRAN repository.</p>
<table>
<tbody>
<tr>
<td>
<p><figure id="attachment_2364" aria-describedby="caption-attachment-2364" style="width: 200px" class="wp-caption alignleft"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/c-chart-R.png"><img decoding="async" class="size-medium wp-image-2364" title="c-chart generated the R package qcc" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/c-chart-R-300x200.png" alt="c-chart generated the R package qcc" width="200" srcset="https://www.centerspace.net/wp-content/uploads/2010/07/c-chart-R-300x200.png 300w, https://www.centerspace.net/wp-content/uploads/2010/07/c-chart-R.png 738w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-2364" class="wp-caption-text">c-chart generated by R package qcc</figcaption></figure></td>
<td>
<p><figure id="attachment_2365" aria-describedby="caption-attachment-2365" style="width: 200px" class="wp-caption alignright"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart-R.png"><img decoding="async" class="size-medium wp-image-2365" title="u-chart generated by the R package qcc" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart-R-300x190.png" alt="u-chart generated by the R package qcc" width="200" srcset="https://www.centerspace.net/wp-content/uploads/2010/07/u-chart-R-300x190.png 300w, https://www.centerspace.net/wp-content/uploads/2010/07/u-chart-R.png 760w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-2365" class="wp-caption-text">u-chart generated by R package qcc</figcaption></figure></td>
</tr>
</tbody>
</table>
<p>These two images demonstrate the standard look of the &#8216;c&#8217; and &#8216;u&#8217; attribute quality control chart.  Some typical chart features include the highlighting of out-of-control data points and time varying upper and lower control limits.  The charts generated by the R qcc package have served as our standard for recreating these in the .NET / C# development environment.  The real world data used in our examples below was copied from the qcc package so direct comparisons can be made.</p>
<h3>Creating a Quality Chart with .NET</h3>
<p>To integrate these quality controls charts into a .NET/C# data driven quality monitoring application, we need both a statistical analysis library and a visualization tool that can manage the special chart style demanded by quality control engineers.  CenterSpace, in partnership with Nevron, has created an extensible example application to build these types of specialized charts.  Once you have these free helper classes, building an attribute u-chart is as simple or simpler than prototyping charts in R.</p>
<pre lang="csharp">    public void UChart()
    {

      // u-Chart sample data
      // This data-set was copied from the 'dyedcloth' data set packaged with
      // the R-package qcc by Luca Scrucca
      //
      // Example Data Description
      // In a textile finishing plant, dyed cloth is inspected for the occurrence of
      // defects per 50 square meters.
      // The data on ten rolls of cloth are presented
      //    x number of nonconformities per 50 square meters (inspection units)
      //    samplesize number of inspection units in roll (variable sample size
      DoubleVector x =
        new DoubleVector(14, 12, 20, 11, 7, 10, 21, 16, 19, 23);
      DoubleVector samplesize =
        new DoubleVector(10.0, 8.0, 13.0, 10.0, 9.5, 10.0, 12.0, 10.5, 12.0, 12.5);

      // This builds the statistical information for the drawing the chart.
      IAttributeChartStats stats_u = new Stats_u(x, samplesize);

      // Build and display the Nevron u-Chart visualization
      NevronControlChart.AutoRefresh = true;
      NevronControlChart.Clear();
      AttributeChart cChart =
        new AttributeChart(stats_u, this.NevronControlChart);

    }</pre>
<p>This code creates a u-Chart that looks like this below.</p>
<figure id="attachment_2503" aria-describedby="caption-attachment-2503" style="width: 300px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart.png"><img decoding="async" loading="lazy" class="size-medium wp-image-2503" title="u-chart" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart-300x209.png" alt="" width="300" height="209" srcset="https://www.centerspace.net/wp-content/uploads/2010/07/u-chart-300x209.png 300w, https://www.centerspace.net/wp-content/uploads/2010/07/u-chart.png 618w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-2503" class="wp-caption-text">u-Chart, or Unit Chart</figcaption></figure>
<p>For those familiar with the aforementioned R-package qcc, these .NET/C# classes follow the same R naming convention for the particular chart statistics objects,  but with an improved object model.  So as seen in this example, the u-chart statistics are contained in a class named <code> Stats_u</code>, similar to the R <code> stats.u </code> command.  Each of these statistical chart objects implements either an <code>IAttributeChartStats</code> or an <code>IVariableChartStats</code> interface, which is used by the chart generating class (<code>AttributeChart</code>) as seen in the last line of the code above.</p>
<p>Building control charts boils down to three steps using these example classes.</p>
<ol>
<li> Build the necessary data vectors.</li>
<li> Build the desired chart&#8217;s statistics object,<br />
e.g. <code> IAttributeChartStats Stats = new Stats_c(DoubleVector data); </code></li>
<li> Show chart using Nevrons .NET chart control,<br />
e.g. <code> new AttributeChart(IAttributeChartStats Stats, NChartControl Chart) </code></li>
</ol>
<h3>Free Example Code</h3>
<p>The example code now available on <a href="https://github.com/MilenMetodiev/CenterSpaceNevronExamples">github</a> can currently create all four essential attribute quality control charts, as seen below.</p>
<table>
<tbody>
<tr>
<td>
<p><figure id="attachment_2503" aria-describedby="caption-attachment-2503" style="width: 180px" class="wp-caption alignnone"><br />
<a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/c-chart.png"><img decoding="async" class="size-thumbnail wp-image-2506" title="c-chart" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/c-chart-150x150.png" alt="c-Chart, or Count Chart" width="180" /></a><br />
<figcaption id="caption-attachment-2503" class="wp-caption-text">c-Chart, or Count Chart</figcaption></figure></td>
<td>
<p><figure id="attachment_2503" aria-describedby="caption-attachment-2503" style="width: 180px" class="wp-caption alignnone"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart.png"><img decoding="async" class="size-thumbnail wp-image-2503" title="u-chart" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/u-chart-150x150.png" alt="" width="180" /></a><br />
<figcaption id="caption-attachment-2503" class="wp-caption-text">u-Chart, or Unit Chart</figcaption></figure></td>
</tr>
<tr>
<td>
<p><figure id="attachment_2507" aria-describedby="caption-attachment-2507" style="width: 180px" class="wp-caption alignnone"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/p-chart.png"><img decoding="async" class="size-thumbnail wp-image-2507" title="p-chart" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/p-chart-150x150.png" alt="" width="180" /></a><figcaption id="caption-attachment-2507" class="wp-caption-text">p-Chart, Percentage Chart</figcaption></figure></td>
<td>
<p><figure id="attachment_2508" aria-describedby="caption-attachment-2508" style="width: 180px" class="wp-caption alignnone"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/07/np-chart.png"><img decoding="async" class="size-thumbnail wp-image-2508" title="np-chart" src="https://www.centerspace.net/blog/wp-content/uploads/2010/07/np-chart-150x150.png" alt="" width="180" /></a><figcaption id="caption-attachment-2508" class="wp-caption-text">np-Chart</figcaption></figure></td>
</tr>
</tbody>
</table>
<p>To download and run these examples just navigate to our <a href="https://github.com/MilenMetodiev/CenterSpaceNevronExamples"> Nevron / CenterSpace  github repository</a> and either click on the &#8220;Download Source&#8221; button in the upper right-hand corner and download either a .zip or .tar file of the project, or just clone the repository.   For those unfamiliar with git, git is a source code control system designed specifically for collaborative projects such as this one.  To clone the project, after installing <a href="http://git-scm.com/download">git</a>, simply type at your command prompt:</p>
<pre lang="dos"> git clone git@github.com:MilenMetodiev/CenterSpaceNevronExamples.git</pre>
<p>This will create a clone of this project code at your current drive location in a directory call &#8220;CenterSpaceNevronExamples&#8221;.</p>
<h3>Other Quality Control Charts and Future Development</h3>
<p>Currently we have only implemented the attribute control charts.  Other common quality system charts including EWMA (exponential weighted moving average), Pareto, and CumSum (cumulative sum) have not been implemented in this example, but can be using the same tool set and class patterns established in this example.  If you would like help or need any assistance in getting the project running or extending this to other chart types, drop us an <a href="mailto:consulting@centerspace.net"> email </a>.</p>
<p>Happy Computing,<br />
-Paul</p>
<p><strong> Resources </strong></p>
<ul>
<li> The table above is adapted from the Wikipedia control chart <a href="https://en.wikipedia.org/wiki/Control_chart">article</a>.</li>
<li> &#8220;qcc: An R package for quality control charting and statistical process control&#8221;, R News, <a href="https://www.r-project.org/doc/Rnews/Rnews_2004-1.pdf">Volume 4/1 </a>, June 2004.</li>
<li> The standard <a href="https://cran.r-project.org/web/packages/qcc/qcc.pdf"> qcc documentation </a> from the CRAN project was very helpful with this project.</li>
</ul>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/statistical-quality-control-charts">Statistical Quality Control Charts</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/statistical-quality-control-charts/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2345</post-id>	</item>
	</channel>
</rss>
