Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Python code for quality control tools.

License

NotificationsYou must be signed in to change notification settings

alebaho/capability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository provides tools for calculating cspability indices.

A colection of methods for calculating process capability matrics.Uses USL and/or LSL. A minimum condition is that one of USL or LSL is specified.If the argument of normalize is set to True, the class will verify for normality and if the data is not normal, it uses Yeo-Johnson normalization to normalize the data.

Arguments:

ArgumentDescribtion
lstThe input.
uslProcess uper specification limit.
lslProcess lower specification limit.
targetOptional pricess target value.
normalizeWhether to normalize or not the data.
alphaThe desried (1-alpha)% confidence interval.

Available Methods

MethodDescribtion
uslThe USL if entered in function call.
lssThe LSL if entered in function call.
targetThe target if entered in function call.
midpointThe midpoint between USL and LSL.
mThe number of sample groups.
nThe number of supsamples in each sample group.
subsample_meansReturn the n means for each sample group m.
x_barCalculate the x-bar.
r_barCalculate the r-bar.
s_longCalculate the long term standard deviation.
s_shortCalculate the short term standard deviation.
cpCalculate Cp. Needs USL and LSL to be specified..
cpuCalculate Cpu. Needs USL to be specified.
cplCalculate Cpl. Needs LSL to be specified.
cpkCalculate Cpk. Needs USL or LSL to be specified.
ppCalculate Pp. Needs USL and LSL to be specified.
ppuCalculate Ppu. Needs USL to be specified.
pplCalculate Ppl. Needs LSL to be specified.
ppkCalculate Ppk. Needs USL or LSL to be specified.
kCalculates divergence of population mean from target value. USL, LSL and Target must be specified.
zl()Calculate the lower Z indice for short or long standard deviation. Needs LSL to be specified.
zu()Calculate the upper Z indice for short or long standard deviation. Needs USL to be specified.
z_min()Return the minimal Z value for short or long standard deviation. Needs USL or LSL to be specified.
non_conforming()Calculate the proportion of non-conformings for short or long standard deviation. Needs USL or LSL to be specified.
dpm()Calculate DPM Defects Per Milion for short or long standard deviation. Needs USL or LSL to be specified.
yld()Calculate the capability yield for short or long standard deviation. Needs USL or LSL to be specified.
sigma_level()Return the Sigma level for short or long standard deviation. Needs USL or LSL to be specified.
ddofCalculate the degrees of freedom.
confidence()Returns the 100(1-a)% confidence iterval for Cp, Pp, Cpk or Ppk.
low_interval()Returns the 100(1-a)% lower confidence.
n_min()Find the minimum sample size requred to meet desired alpha level and relative error level.
plot()Plot a hitogram with limits.
normal_test()Verify if distibution is normal using Shapiro.
_make_normal()Creates a new class witth normalized data using Yeo-Johnson.
Average()Return the average of a list.
Make_Long()Flatten the list of lists into a single list.
Brake_Down(n, rand, rand_j)Brake down a list into sublists of size n. If n is a list, each sublist will be of lenght equal to each element of the list n. If rand is True, each sublist has lenght of n +/- rand_j with the last sublist containing the unused items of lst.
samples()Count number of samples.
subsamples()Count the number of subsamples in a sample.
subsample_means()Return the mean for each sample.

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp