Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 How do you read cp, cpk, sigma, etc. data values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scrindan

Mexico
6 Posts

Posted - 07 Jul 2011 :  12:28:47  Show Profile  Reply with Quote
there any way to get data cp, cpk, sigma, etc in array? I view them independently and not only in graphics or tables it generates.

quinncurtis

1164 Posts

Posted - 07 Jul 2011 :  15:12:39  Show Profile  Reply with Quote
You can retrieve those values using codes similar to below:

SPCControlChartData chartdata = this.getChartData();
.
.
.
chartdata.addProcessCapabilityValue(SPCProcessCapabilityRecord.SPC_CPK_CALC);
chartdata.addProcessCapabilityValue(SPCProcessCapabilityRecord.SPC_CPM_CALC);
chartdata.addProcessCapabilityValue(SPCProcessCapabilityRecord.SPC_PPK_CALC);
.
.
.
		
		
// If you want to retreive the values, use the ChartData.getProcessCapabilityRecord method

// Retrieve in the order they were added.
SPCProcessCapabilityRecord cpk = chartdata.getProcessCapabilityRecord(0);
SPCProcessCapabilityRecord cpm = chartdata.getProcessCapabilityRecord(1);
SPCProcessCapabilityRecord ppk = chartdata.getProcessCapabilityRecord(2);

double  cpkvalue  = cpk.getCurrentValue();	
double  cpmvalue  = cpm.getCurrentValue();	
double  ppkvalue  = cpm.getCurrentValue();	
		
double processsigma = chartdata.getProcessSigma();
double processmean = chartdata.getProcessMean();
Go to Top of Page

scrindan

Mexico
6 Posts

Posted - 10 Sep 2011 :  16:41:06  Show Profile  Reply with Quote
thank you very much, I have another question, processmean processsigma and always returns the values of 1 and 10, I'm doing something wrong?, did as you indicated to me, hehe.

and I have another question, as I can get the values of USL and LSL, the graphics and also require use in the array

forgive my English, I do not speak very well

Edited by - scrindan on 10 Sep 2011 16:49:45
Go to Top of Page

quinncurtis

1164 Posts

Posted - 11 Sep 2011 :  10:27:39  Show Profile  Reply with Quote
Sorry, we gave you some mis-information. The getProcessMean and getProcessSigma only apply to the TABCUSUM_CHART chart type.

The estimated process mean is the same as the target value of the primary chart. These values only make sense after the autoCalculateControlLimits method is called. You can retrieve the UCL and LCL in a similar fashion. The estimated process sigma can be calculated as the (ucl - processMean) / 3;

double meanValue = this.getPrimaryChart().getControlLimitData(SPCChartObjects.SPC_CONTROL_TARGET).getLimitValue();
double ucl = this.getPrimaryChart().getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).getLimitValue();
double lcl = this.getPrimaryChart().getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).getLimitValue();
double sigmaValue = (ucl - meanValue)/3;

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07