cds2.quality
Statistical process control: control charts and capability indices.
Statistical process control: control charts and capability indices.
ControlChartResult
dataclass
Control-chart statistics with out-of-control point indices.
Source code in src/cds2/quality.py
29 30 31 32 33 34 35 36 37 | |
CapabilityResult
dataclass
Process-capability indices against specification limits.
Source code in src/cds2/quality.py
205 206 207 208 209 210 211 | |
xbar_chart(samples, subgroup_size=None)
Shewhart X-bar chart; limits come from the A2 * R-bar constants.
1-D input is split into subgroups of subgroup_size consecutive
observations; 2-D input uses rows as subgroups directly.
Source code in src/cds2/quality.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
ewma_chart(values, lambda_smooth=0.2, sigma=None, width=3.0)
EWMA control chart with the standard time-varying limit formula.
Source code in src/cds2/quality.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
cusum_chart(values, target=None, sigma=None, allowance=0.5, decision_interval=4.0)
Two-sided CUSUM chart returning the net upper-minus-lower cumulative sum.
Source code in src/cds2/quality.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
p_chart(defectives, lot_sizes)
Attribute control chart for proportions across lots of varying size.
Source code in src/cds2/quality.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | |
process_capability(values, lsl=None, usl=None)
Cp/Cpk plus expected defective parts-per-million under normality.
With only one specification limit given, Cp is infinite by convention and Cpk measures the existing side only.
Source code in src/cds2/quality.py
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |