Example: XbarR Chart
During a manufacturing process 15 samples, each containing 5 items, were measured. An XbarR chart was contructed from the 15 sample ranges.
using Imsl.Chart2D;
using Imsl.Chart2D.QC;
using System;
public class XbarREx1 : FrameChart
{
static private readonly double[][] data = {
new double[]{44.73, 45.47, 45.39, 45.33, 45.24},
new double[]{45.57, 46.87, 45.40, 46.68, 44.29},
new double[]{46.39, 45.31, 46.74, 46.06, 45.51},
new double[]{45.54, 46.27, 44.57, 45.36, 45.72},
new double[]{45.58, 45.59, 46.02, 45.45, 46.42},
new double[]{45.91, 45.38, 44.98, 44.91, 45.17},
new double[]{45.98, 45.29, 45.50, 45.77, 46.44},
new double[]{46.30, 45.65, 45.21, 45.43, 45.57},
new double[]{45.77, 45.38, 45.65, 45.25, 45.89},
new double[]{44.10, 45.44, 45.27, 45.53, 44.65},
new double[]{45.95, 46.22, 46.71, 45.92, 45.90},
new double[]{44.87, 44.98, 45.91, 45.18, 45.64},
new double[]{44.70, 45.89, 46.67, 45.84, 45.07},
new double[]{45.90, 45.80, 46.30, 46.34, 46.34},
new double[]{44.90, 46.23, 45.31, 45.29, 45.16}
};
public XbarREx1()
{
XbarR.CreateCharts(this.Chart, data);
}
public static void Main(string[] argv)
{
System.Windows.Forms.Application.Run(new XbarREx1());
}
}
Output
Link to C# source.