home *** CD-ROM | disk | FTP | other *** search
/ Explore the World of Soft…e: Engineering & Science / Explore_the_World_of_Software_Engineering_and_Science_HRS_Software_1998.iso / programs / statistc / nmjr9402.txt < prev    next >
Text File  |  1997-09-22  |  11KB  |  228 lines

  1.                Note:  PMA = Pharmaceutical Manufacturers Association
  2.  
  3.        NoMajors.EXE designs one-, two-, and three-stage "trinomial" acceptance
  4.        sampling plans for detecting MINOR defects, assuming that observance of
  5.        a single MAJOR defect also results in lot rejection.  For example, the
  6.        USP Capsule sampling plan calls deviations from target of between 25%
  7.        and 35% minor nonconformances, while deviations greater than 35% are
  8.        major.  Highly portable C-language source code is included; no graphics.
  9.  
  10.           TABLE-OF-CONTENTS
  11.           =================
  12.                NoMajors.EXE.................................Executable Module
  13.                NoMajors.IN............................ASCII Batch Input Files
  14.                NoMajors.CSV................................ASCII Output Files
  15.                PROMPTS and DEFAULTS..................Minimum & Maximum Values
  16.                NUMERICAL EXAMPLES..............Schilling, Acceptance Sampling
  17.                NoMajors.C..............................C-language Source Code
  18.  
  19.        *********************************************************************
  20.  
  21.        NoMajors.EXE
  22.  
  23.            NoMajors calculates the expected percentage of acceptable lots
  24.            in single, double, or triple stage TRINOMIAL sampling in which
  25.            acceptance implies that NO MAJOR Nonconformances were observed.
  26.  
  27.            Testing of each unit sampled is assumed to yield one of three
  28.            possible results...
  29.  
  30.                Observance of a Conformance to Specification
  31.                        (say, within 25% of a target value), or
  32.  
  33.                Observance of a Minor Nonconformance
  34.                        (say, deviation from target by 25% to 35%), or
  35.  
  36.                Observance of a Major Nonconformance
  37.                        (say, deviation from target by more than 35%).
  38.  
  39.            Furthermore, NoMajors assumes that...
  40.  
  41.               the observance of a single MAJOR Nonconformance implies
  42.               rejection of the lot, and
  43.          NoMajors.EXE, ver 9402 . . . . . . . . . . . . . . . . Page 2 of 5
  44.  
  45.  
  46.  
  47.               a one, two, or three stage acceptance sampling plan for MINOR
  48.               Nonconformances will be specified.
  49.  
  50.  
  51.            NoMajors.EXE is an executable module for IBM-compatible personal
  52.            computers.  It was compiled using Microsoft C, version 6.00AX
  53.            NoMajors.EXE thus provides automatic detection (and use or
  54.            emulation) of an 8087/80287/80387 numeric math coprocessor.  If
  55.            your PC has a math chip, NoMajors should run much faster.  If
  56.            your PC does NOT have a math chip, NoMajors will still run and
  57.            should yield identical numerical results.
  58.  
  59.            For each Total (Major+Minor) Nonconformance Percentage input by
  60.            the user, NoMajor calculates the 5 expectated First-Pass Yield
  61.            Percentages that would be expected in random sampling from a large
  62.            population (trinomial model) when the split between Major and
  63.            Minor Nonconformances is...
  64.  
  65.                               0% Major vs. 100% Minor,
  66.                              10% Major vs.  90% Minor,
  67.                              25% Major vs.  75% Minor,
  68.                              50% Major vs.  50% Minor and
  69.                             100% Major vs.   0% Minor.
  70.  
  71.        NoMajors.IN
  72.  
  73.            NoMajors prompts the user to choose between Keyboard (K) and ACSII
  74.            Batch file (B) input of sample sizes and accept/reject numbers as
  75.            well as input of alternative true values for the underlying
  76.            percentage nonconforming in the process.
  77.  
  78.            The format for a NoMajors batch input file is similar to that of
  79.            its output (.CSV) files.  Each line of the file (except for the
  80.            first line giving the output filename) must start with a number,
  81.            and only the first number on each line of the batch input file is
  82.            actually read.  This number may be either an integer or a floating
  83.            point number - but must be separated from other information on the
  84.            same line by at least one comma or "white" space (blank or tab.)
  85.  
  86.            The example input file distributed with NoMajors is NOMAJORS.IN.
  87.  
  88.  
  89.        NoMajors.CSV
  90.  
  91.            This is the default filename for the ASCII summary file of inputs
  92.            and outputs from NoMajors.EXE.  You may specify an alternative
  93.            filename for this file when prompted.  The filename extension of
  94.            .CSV stands for "Comma Separated Values," which puts the output
  95.            in a format convenient for importing into a spreadsheet system,
  96.            such as Excel, to graph the calculated Operating Characteristic
  97.            curve.  Each row of the .CSV file is separated into 6 columns by
  98.            5 commas.  In the expected yields table at the bottom of the file,
  99.          NoMajors.EXE, ver 9402 . . . . . . . . . . . . . . . . Page 3 of 5
  100.  
  101.  
  102.  
  103.                Column 1 contains the Total Percentage (Major+Minor) of
  104.                         nonconforming units in lots incoming for inspection,
  105.  
  106.                Column 2 contains the Expected Yield when those incoming
  107.                         nonconformances are   0% Majors and 100% Minors.
  108.  
  109.                Column 3 contains the Expected Yield when those incoming
  110.                         nonconformances are  10% Majors and  90% Minors.
  111.  
  112.                Column 4 contains the Expected Yield when those incoming
  113.                         nonconformances are  25% Majors and  75% Minors.
  114.  
  115.                Column 5 contains the Expected Yield when those incoming
  116.                         nonconformances are  50% Majors and  50% Minors.
  117.  
  118.                Column 6 contains the Expected Yield when those incoming
  119.                         nonconformances are 100% Majors and   0% Minors.
  120.  
  121.            You can read/print this file after the program terminates, so you
  122.            do not need to make hand-written notes during NoMajors execution.
  123.            And the easiest way to create a NoMajors .IN file is to edit an
  124.            existing .CSV or .IN file to use whatever new sampling parameters
  125.            and/or process characteristics you desire.
  126.  
  127.  
  128.        PROMPTS and DEFAULTS
  129.  
  130.                ...Type responses to prompts using the number keys along the
  131.                   top row of the keyboard, and then press the ENTER key.
  132.  
  133.                ...If you press the ENTER key without typing a value, your
  134.                   response will be assigned to the DEFAULT value.
  135.  
  136.                ...The prompts are listed below with minimum, default, and
  137.                   maximum allowed values.
  138.  
  139.                      Enter your First Stage Sample Size: n1
  140.                      Minimum Sample Size =     2
  141.                      Default Sample Size =    50
  142.                      Maximum Sample Size = 5,000
  143.  
  144.                      Enter your First Stage MINOR Nonconformance Accept Number: a1
  145.                      Minimum Acceptance Number =     -1
  146.                          (i.e. lot acceptance impossible at stage 1
  147.                           even if zero nonconformances are observed.)
  148.                      Default Acceptance Number =      0
  149.                      Maximum Acceptance Number =      min(n1,999)
  150.  
  151.                      Enter your First Stage MINOR Nonconformance Reject Number: r1
  152.                      Minimum Reject Number =      max(a1+1,1)
  153.                                             (i.e. single stage sampling)
  154.                      Default Reject Number =      max(a1+1,1)
  155.                      Maximum Reject Number =      n1
  156.          NoMajors.EXE, ver 9402 . . . . . . . . . . . . . . . . Page 4 of 5
  157.  
  158.  
  159.  
  160.                      Enter your Second Stage Sample Size: n2
  161.                      Minimum Sample Size =     1
  162.                      Default Sample Size =    50
  163.                      Maximum Sample Size = 5,000
  164.  
  165.                      Enter your Second Stage MINOR Nonconformance Accept Number: a2
  166.                      Minimum Acceptance Number =      a1
  167.                      Default Acceptance Number =      a1
  168.                      Maximum Acceptance Number =      min(n1+n2,999)
  169.  
  170.                      Enter your Second Stage MINOR Nonconformance Reject Number: r2
  171.                      Minimum Reject Number =      a2+1
  172.                          (i.e. two stage sampling)
  173.                      Default Reject Number =      a2+1
  174.                      Maximum Reject Number =      n1+n2
  175.  
  176.                      Enter your Third Stage Sample Size: n3
  177.                      Minimum Sample Size =     1
  178.                      Default Sample Size =    50
  179.                      Maximum Sample Size = 5,000
  180.  
  181.                      Enter your Final MINOR Nonconformance Accept Number:  a3
  182.                      Minimum Acceptance Number =      r2 - 1
  183.                      Default Acceptance Number =      r2 - 1
  184.                      Maximum Acceptance Number =      min(n1+n2+n3,999)
  185.  
  186.                      Specify Testing Efficiency (Percentage):
  187.                      Minimum Testing Efficiency =    10%
  188.                      Default Testing Efficiency =   100%
  189.                      Maximum Testing Efficiency =   100%
  190.  
  191.  
  192.        YIELD Calculations...
  193.  
  194.                ...The user is repeatedly prompted to specify total (major+
  195.                   minor) nonconformance percentages of units within lots.
  196.                   These are the values of quality  Total % Nonconforming
  197.                   incoming to the acceptance sampling inspection.
  198.  
  199.                ...Enter values between 0.0% and 100.0%.
  200.  
  201.                ...Enter any negative value (say, -1) for % Total
  202.                   Nonconforming to halt execution of NoMajors.EXE.
  203.  
  204.                ...NoMajors.EXE will calculate the "Yield Percentage"
  205.                   corresponding to 5 splits of this total incoming %
  206.                   percentage between major and minor nonconformances.
  207.                   These Yield %s are 100 times the corresponding Probability
  208.                   of Lot Acceptance, which defines the Operating
  209.                   Characteristic Curve for the Trinomial Sampling Plan.
  210.          NoMajors.EXE, ver 9402 . . . . . . . . . . . . . . . . Page 5 of 5
  211.  
  212.  
  213.  
  214.        NoMajors.C
  215.  
  216.            This is an ASCII file of C-language source code for NoMajors.  The
  217.            only external functions called by NoMajors are the logarithm and
  218.            exponential functions, so the code should be highly portable.  For
  219.            example, to compile and run the program on a VAX under VMS, upload
  220.            NoMajors.C to the VAX in ASCII mode and enter the commands...
  221.  
  222.                                VAX Prompt> cc nomajors
  223.                                VAX Prompt> link nomajors
  224.                                VAX Prompt> run nomajors
  225.  
  226.  
  227.        *********************** End of NoMajors.DOC *************************
  228.