Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 EWMA Starting Value Problem

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
sakamali Posted - 25 Jul 2012 : 07:48:44
Hi,
I have purchased your product in order to use SPC components.I have a problem in EWMA chart. In this type of chart there exists some values to set up initially. like :


spcChart.ChartData.EWMA_StartingValue = 10; // Set to estimate of mean of process variable.
spcChart.ChartData.EWMA_Lambda = 0.1;
spcChart.DefaultControlLimitSigma = 2.7; // Specifies L value
spcChart.ChartData.EWMA_UseSSLimits = false;


My aim is set the spcChart.ChartData.EWMA_StartingValue to process mean , that is calculated according to input data . Initally this value is 1.0 . How can I set this value to calculated process mean.


Thank you in advance
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 25 Jul 2012 : 09:41:50
I am not sure exactly what you want to do. Normally, a process engineer would have a very good idea as to estimate of the mean of a process, before you start to apply EWMA control rules to it. You set that using the EWMA_StartingValue parameter. If the mean of the process is completely unknown, you could just pick any starting, EWMA_StartingValue, run the EWMA chart, then write down the resulting target (center line) value, which will be the mean. Then, in all future runs of the EWMA chart for the given process, use that as the EWMA_StartingValue.


If you absolutely must have everything automatically calculated, you will need to run the same data through twice. The first time using any value for the EWMA_StartingValue. You can then obtain the mean using GetControlLimitData. Reset the data of the chart back to empty using ResetSPCChartData. Then, use that mean as the starting value, and run the data again.

// Run your data through once using any value for EWMA_StartingValue.
this.ChartData.EWMA_StartingValue = 1; // Set to estimate of mean of process variable.

SimulateData(20,10);

// Calculate the SPC control limits for both graphs of the current SPC chart
this.AutoCalculateControlLimits();

// NO need to display the chart, since for initial run
// this.RebuildChartUsingCurrentData();

// Get calculated mean of process
double meanValue = PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_CONTROL_TARGET).LimitValue;
this.ChartData.EWMA_StartingValue = meanValue; // Set to estimate of mean of process variable.
// Reset the chart back to empty
this.ChartData.ResetSPCChartData();
this.ChartData.EWMA_StartingValue = meanValue; // Set to estimate of mean of process variable.
// Simulate some more data
SimulateData(20, 10);
// Calculate the SPC control limits for both graphs of the current SPC chart
this.AutoCalculateControlLimits();
// Scale the y-axis of the chart to display all data and control limits
this.AutoScalePrimaryChartYRange();

// Rebuild the chart using the current data and settings
this.RebuildChartUsingCurrentData();

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07