Load process data, then check if any points are out-of-control.
using Dew.Math; using Dew.Math.Units; using Dew.Stats.Units; namespace Dew.Examples { private void Example(Dew.Stats.QCSeries QCSeries1) { Vector data = new Vector(0); Vector outofcontrol = new Vector(0); Vector indexes = new Vector(0); data.LoadFromFile("process_data.vec"); StatControlCharts.QCWestgardRules(data,outofcontrol,data.Mean(),data.StdDev()); // Now find indexes of out-of-control points indexes.FindIndexes(outofcontrol,">",0); // indexes.IValues now stores the indices of out-of-control points } }
|
Copyright (c) 1999-2010 by Dew Research. All rights reserved.
|