Calculation STATBEANS®


STATBEAN Name: ToleranceLimits


Purpose: Computes normal tolerance limits. 

DataSource: Any. 

Read/Write Properties
Name Type Description Possible Values Default Value
confidenceLevel double Level of confidence for the tolerance limits, as a percentage. 0.0001-99.9999 95.0
oneSided boolean Whether to compute one-sided rather than two-sided limits. true,false false
populationPercentage double Percentage at which tolerance limits are calculated. 0.0001-99.9999 99.73
tablewiseExclusion boolean Whether all rows of the data table containing a missing value in any column should be excluded from the plot. true,false false
xVariableName String The name of the column with the data. Any string. "X"

Other Public Methods
Name Description Arguments Return Value
double getLowerToleranceLimit() Returns the lower tolerance limit. None. Tolerance limit.
double getSampleMean() Returns the sample mean. None. Mean.
double getSampleSigma() Returns the sample standard deviation. None. Sigma.
int getSampleSize() Returns the number of observations in the sample. None. Sample size n.
double getSigmaMultiple() Returns the multiple of sigma used to calculate the limits. None. Multiple.
double getUpperToleranceLimit() Returns the upper tolerance limit. None. Tolerance limit.

Code Sample 

//create a datasource bean 
FileDataSource fileDataSource1 = new STATBEANS.FileDataSource(); 

//set the file name to be read 

//create a calculation bean 
ToleranceLimits toleranceLimits1 = new STATBEANS.ToleranceLimits(); 

//set the name of the column containing the data 

//set the population percentage 

//make the calculation bean a listener for changes in the FileDataSource bean 

//instruct the fileDataSource bean to read the file 

//retrieve the limits 
double lowerLimit=toleranceLimits1.getLowerToleranceLimit(); 
double upperLimit=toleranceLimits1.getUpperToleranceLimit();