@wafertools/wafermap 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -3
- package/README.md +4 -3
- package/dist/packages/canvas-adapter/cellShade.d.ts +21 -0
- package/dist/packages/canvas-adapter/cellShade.js +1 -0
- package/dist/packages/canvas-adapter/charts/chartShell.d.ts +19 -3
- package/dist/packages/canvas-adapter/charts/chartShell.js +1 -1
- package/dist/packages/canvas-adapter/charts/commonality.js +4 -1
- package/dist/packages/canvas-adapter/charts/correlation.d.ts +11 -0
- package/dist/packages/canvas-adapter/charts/correlation.js +1 -1
- package/dist/packages/canvas-adapter/charts/divergingScale.d.ts +23 -0
- package/dist/packages/canvas-adapter/charts/divergingScale.js +1 -0
- package/dist/packages/canvas-adapter/charts/groupComparison.js +1 -1
- package/dist/packages/canvas-adapter/charts/palette.d.ts +10 -3
- package/dist/packages/canvas-adapter/charts/palette.js +1 -1
- package/dist/packages/canvas-adapter/charts/plotChart.d.ts +8 -0
- package/dist/packages/canvas-adapter/charts/plotChart.js +1 -1
- package/dist/packages/canvas-adapter/charts/regionYieldDiagram.js +1 -1
- package/dist/packages/canvas-adapter/charts/sweep.js +1 -1
- package/dist/packages/canvas-adapter/dataTab.js +1 -1
- package/dist/packages/canvas-adapter/differenceMapPanel.d.ts +1 -0
- package/dist/packages/canvas-adapter/differenceMapPanel.js +1 -1
- package/dist/packages/canvas-adapter/filterJson.d.ts +25 -0
- package/dist/packages/canvas-adapter/filterJson.js +5 -0
- package/dist/packages/canvas-adapter/insightsTab.js +1 -1
- package/dist/packages/canvas-adapter/pageFilter.js +2 -2
- package/dist/packages/canvas-adapter/plotEditor.js +10 -1
- package/dist/packages/canvas-adapter/plotJsonComplete.d.ts +46 -0
- package/dist/packages/canvas-adapter/plotJsonComplete.js +4 -0
- package/dist/packages/canvas-adapter/plotJsonHistory.d.ts +12 -0
- package/dist/packages/canvas-adapter/plotJsonHistory.js +1 -0
- package/dist/packages/canvas-adapter/plotJsonSuggest.d.ts +16 -0
- package/dist/packages/canvas-adapter/plotJsonSuggest.js +1 -0
- package/dist/packages/canvas-adapter/plotModal.js +1 -1
- package/dist/packages/canvas-adapter/plotTab.js +1 -1
- package/dist/packages/canvas-adapter/renderWaferGallery.js +1 -1
- package/dist/packages/canvas-adapter/renderWaferMap.js +1 -1
- package/dist/packages/canvas-adapter/summaryPanel.js +4 -4
- package/dist/packages/canvas-adapter/sweepEditor.js +1 -1
- package/dist/packages/canvas-adapter/toCanvas.d.ts +1 -0
- package/dist/packages/canvas-adapter/toCanvas.js +1 -1
- package/dist/packages/canvas-adapter/userGuideHtml.d.ts +1 -1
- package/dist/packages/canvas-adapter/userGuideHtml.js +81 -43
- package/dist/packages/canvas-adapter/version.d.ts +2 -2
- package/dist/packages/canvas-adapter/version.js +1 -1
- package/dist/packages/canvas-adapter/virtualTable.d.ts +2 -0
- package/dist/packages/canvas-adapter/virtualTable.js +1 -1
- package/dist/packages/core/compact.js +2 -2
- package/dist/packages/core/dieTable.js +1 -1
- package/dist/packages/core/utils.d.ts +6 -0
- package/dist/packages/core/utils.js +1 -1
- package/dist/packages/renderer/fmt.js +1 -1
- package/dist/packages/stats/chartCatalogue.js +1 -1
- package/dist/packages/stats/coFailure.d.ts +11 -0
- package/dist/packages/stats/coFailure.js +1 -0
- package/dist/packages/stats/commonality.d.ts +37 -4
- package/dist/packages/stats/commonality.js +1 -1
- package/dist/packages/stats/correlation.d.ts +7 -0
- package/dist/packages/stats/correlation.js +1 -1
- package/dist/packages/stats/dieRegions.d.ts +2 -0
- package/dist/packages/stats/dieRegions.js +1 -1
- package/dist/packages/stats/differenceMap.d.ts +2 -0
- package/dist/packages/stats/differenceMap.js +1 -1
- package/dist/packages/stats/examplePicks.d.ts +6 -0
- package/dist/packages/stats/examplePicks.js +1 -1
- package/dist/packages/stats/groupEffects.d.ts +66 -0
- package/dist/packages/stats/groupEffects.js +1 -0
- package/dist/packages/stats/plotData.d.ts +11 -2
- package/dist/packages/stats/plotData.js +1 -1
- package/dist/packages/stats/plotSpec.d.ts +31 -2
- package/dist/packages/stats/plotSpec.js +4 -4
- package/dist/packages/stats/plotTable.d.ts +18 -0
- package/dist/packages/stats/plotTable.js +1 -0
- package/dist/packages/stats/renderFindingsReport.js +1 -1
- package/dist/packages/stats/renderSummaryReport.js +7 -7
- package/dist/packages/stats/reportHtml.js +18 -13
- package/dist/packages/stats/sweep.d.ts +3 -3
- package/dist/packages/stats/sweepXFromName.js +1 -1
- package/dist/packages/stats/synthesis.d.ts +19 -0
- package/dist/packages/stats/synthesis.js +1 -1
- package/dist/packages/stats/testsByWafer.d.ts +11 -0
- package/dist/packages/stats/testsByWafer.js +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GUIDE_SECTIONS as e}from"./guideSections.js";export const CHART_CATALOGUE=[{id:"bin-map",kind:"map",title:"Bin map",mode:["hardBin","softBin"],example:"display-control.html",about:"Each die coloured by its hard or soft bin, passing bins in greens and failing bins in other colours, to show where the failures are.",see:["test-value-map","bin-pareto"]},{id:"test-value-map",kind:"map",title:"Test value map",mode:["value"],example:"test-values.html",about:"Each die coloured by one test\u2019s value on a colour scale, with the test\u2019s limits on the colour bar, to show where on the wafer the value shifts.",see:["bin-map","limit-passfail-map","test-passfail-map","value-histogram"]},{id:"limit-passfail-map",kind:"map",title:"Limit pass/fail map",example:"test-values.html",about:"Each die coloured by whether its value for one test lies inside the test\u2019s limits, with the dies below the low limit and above the high limit marked apart, to show where a test fails its limits.",see:["test-value-map","test-passfail-map","pass-rate-by-test"]},{id:"test-passfail-map",kind:"map",title:"Test pass/fail map",example:"test-values.html",about:"Each die coloured by the pass or fail the tester recorded for one test, to show where a test failed, whether or not it has a measured value.",see:["limit-passfail-map","test-value-map","pass-rate-by-test"]},{id:"die-attribute-map",kind:"map",title:"Die attribute map",mode:["metadata"],example:"metadata-mode.html",about:"Each die coloured by an attribute the data carries (a test site, a probe step, a zone), to show whether a pattern follows it.",see:["bin-map"]},{id:"stacked-map",kind:"map",title:"Stacked map",mode:["stackedBins","stackedSoftBins","stackedValues"],example:"lot-stack-analysis.html",about:"The wafers of a lot laid over one another die by die: how often a bin occurs, or a value\u2019s mean, median or spread at each position, to show what repeats from wafer to wafer.",see:["difference-map","reticle-cell-yield"]},{id:"pat-verdict-map",kind:"map",title:"PAT verdict map",tab:"overview",about:"Each die coloured by its part average testing verdict (within the limits, an outlier or failing), on the map or on every wafer of a gallery, to show where the PAT outliers sit.",see:["part-average-testing-pat","bin-map","test-value-map"]},{id:"difference-map",kind:"map",title:"Difference map",card:"difference-map",tab:"distributions",about:"One group\u2019s wafer map less another\u2019s, die position by die position, to show where on the wafer they differ.",guide:[e.heatmap],see:["stacked-map","comparison-by-group"]},{id:"yield-by-wafer",kind:"chart",title:"Yield by wafer",cards:["card-yield"],tab:"overview",about:"Yield of each wafer or group: passing dies as a share of judged dies, with partial and edge-excluded dies left out. The line is the median bar.",see:["bin-pareto","what-divides-yield"]},{id:"bin-pareto",kind:"chart",title:"Bin pareto",cards:["card-bin-pareto"],tab:"overview",about:"Dies in each bin, largest first, so the bins that cost the most yield lead. Shown alone, the line is the running share of all dies.",see:["bin-map","pareto"]},{id:"pass-rate-by-test",kind:"chart",title:"Pass rate by test",cards:["card-pass-rate"],tab:"overview",about:"The share of judged dies that pass each test, lowest first, so the tests that fail the most dies lead.",see:["process-capability","bin-pareto"]},{id:"ring-yield",kind:"chart",title:"Ring yield",card:"ring-yield",tab:"overview",about:"Yield of each ring, from the wafer centre to its edge, to show a radial pattern.",see:["ring-yield-by-wafer","quadrant-yield","bin-map"]},{id:"ring-yield-by-wafer",kind:"chart",title:"Ring yield by wafer",cards:["card-ring-wafer"],tab:"overview",about:"Yield of each ring on each wafer (or group), as a colour, to show whether a radial pattern is on every wafer or on one.",guide:[e.heatmap],see:["ring-yield","heatmap"]},{id:"quadrant-yield",kind:"chart",title:"Quadrant yield",card:"quadrant-yield",tab:"overview",about:"Yield of each quarter of the wafer, to show a one-sided pattern.",see:["quadrant-yield-by-wafer","ring-yield","bin-map"]},{id:"quadrant-yield-by-wafer",kind:"chart",title:"Quadrant yield by wafer",cards:["card-quadrant-wafer"],tab:"overview",about:"Yield of each quarter of the wafer on each wafer (or group), as a colour, to show whether a one-sided pattern is on every wafer or on one.",guide:[e.heatmap],see:["quadrant-yield","ring-yield-by-wafer","heatmap"]},{id:"reticle-cell-yield",kind:"chart",title:"Reticle cell yield",card:"reticle-yield",tab:"overview",about:"Yield of each position in the reticle, pooled over every shot on every wafer. A cell low everywhere points at the mask rather than the wafer.",see:["stacked-map","ring-yield"]},{id:"test-value-distribution",kind:"chart",title:"Test value distribution",cards:["card-box"],tab:"distributions",about:"How one test\u2019s values spread on each wafer or group: the box holds the middle half of the dies, the line inside it is the median, and the whiskers reach the lowest and highest values.",see:["box-plot","value-histogram"]},{id:"value-histogram",kind:"chart",title:"Value histogram",cards:["card-histogram"],tab:"distributions",about:"How one test\u2019s values are distributed: the number of dies in each value range, with the test\u2019s limits marked.",see:["histogram","probability-plot","test-value-map"]},{id:"histogram-of-the-dies-picked",kind:"chart",title:"Histogram of the dies picked",cards:["drill-histogram"],tab:"drilldown",about:"How one test\u2019s values are distributed over the dies picked: the number of dies in each value range, with the test\u2019s limits marked.",see:["value-histogram"]},{id:"wafer-to-wafer-trend",kind:"chart",title:"Wafer-to-wafer trend",cards:["card-trend"],tab:"distributions",about:"Each wafer\u2019s mean of one test in wafer order, with a band of one standard deviation either side, to show drift through the lot.",guide:[e.bands],see:["control-chart","line-chart"]},{id:"test-scatter",kind:"chart",title:"Test scatter",cards:["card-scatter"],tab:"correlation",about:"One test against another, a point per die, to show whether the two move together. r is the correlation coefficient and n the number of dies.",guide:[e.fit],see:["test-correlation-matrix","scatter-plot"]},{id:"test-correlation-matrix",kind:"chart",title:"Test correlation matrix",card:"correlation",tab:"correlation",about:"The correlation of every pair of tests. A strong colour means two tests move together; click a cell to show the pair in the scatter.",see:["test-scatter","heatmap"]},{id:"process-capability",kind:"chart",title:"Process capability",card:"capability",tab:"distributions",about:"Every test with limits on one scale, the low limit at 0 and the high limit at 1, sorted lowest Ppk first, so the tests closest to their limits lead.",guide:[e.goal],see:["capability-goal-plot","pass-rate-by-test"]},{id:"comparison-by-group",kind:"table",title:"Comparison by group",card:"comparison",tab:"distributions",about:"Yield and each test compared between groups, counting each wafer once, with how likely a difference this large is by chance.",guide:[e.groups],see:["what-divides-yield","difference-map","box-plot"]},{id:"what-divides-yield",kind:"table",title:"What divides yield",card:"commonality",tab:"overview",about:"The wafer and lot fields ranked by how strongly they divide yield, as places to look for a cause.",guide:[e.dividesYield],see:["comparison-by-group","yield-by-wafer"]},{id:"part-average-testing-pat",kind:"table",title:"Part average testing (PAT)",card:"pat",tab:"overview",about:"Dies outside part average testing limits, set from each wafer\u2019s own spread of each test (the AEC-Q001 method), by wafer and by test.",guide:[e.pat],see:["pat-verdict-map","process-capability","scatter-plot"]},{id:"scatter-plot",kind:"chart",title:"Scatter plot",chart:"scatter",tab:"plots",about:"One field against another, a point per die or per wafer, to show whether they move together.",guide:[e.fit],see:["test-scatter","heatmap"]},{id:"histogram",kind:"chart",title:"Histogram",chart:"histogram",tab:"plots",about:"How a value is distributed: the number of dies or wafers in each value range.",see:["value-histogram","probability-plot","box-plot"]},{id:"box-plot",kind:"chart",title:"Box plot",chart:"box",tab:"plots",about:"How a value spreads in each category: the box holds the middle half, the line inside it is the median, and the whiskers reach the lowest and highest values.",guide:[e.groups],see:["test-value-distribution","nested-categories","probability-plot"]},{id:"bar-chart",kind:"chart",title:"Bar chart",chart:"bar",tab:"plots",about:"A count, a share or a summary value for each category, side by side.",see:["pareto","stacked-bars-and-shares","yield-by-wafer"]},{id:"line-chart",kind:"chart",title:"Line chart",chart:"line",tab:"plots",about:"A summary value in order along the X axis (wafer order, a test, a condition), to show a trend.",guide:[e.bands],see:["control-chart","sweep","wafer-to-wafer-trend"]},{id:"sweep",kind:"chart",title:"Sweep",chart:"sweep",tab:"plots",about:"A measured value against a swept condition, a curve per series, to show how the part responds across the range.",see:["line-chart"]},{id:"probability-plot",kind:"chart",title:"Probability plot",chart:"probability",tab:"plots",about:"The share of values at or below each value, a curve per colour, so whole distributions compare, tails included.",guide:[e.probability],see:["histogram","box-plot"]},{id:"control-chart",kind:"chart",title:"Control chart",chart:"control",tab:"plots",about:"One value per wafer in order against its centre line and control limits, with the points that break a Western Electric rule marked.",guide:[e.control],see:["wafer-to-wafer-trend","line-chart","capability-goal-plot"]},{id:"capability-goal-plot",kind:"chart",title:"Capability goal plot",chart:"goal",tab:"plots",about:"Each test with both limits placed by how far its mean is off centre and how wide its spread is, as shares of its limit window. A test outside the solid triangle is short of Ppk 1.33.",guide:[e.goal],see:["process-capability","control-chart"]},{id:"heatmap",kind:"chart",title:"Heatmap",chart:"heatmap",tab:"plots",about:"A value for every pair of two categories, as a colour, to show where the two interact.",guide:[e.heatmap],see:["test-correlation-matrix","difference-map","bar-chart"]},{id:"pareto",kind:"chart",title:"Pareto",tab:"plots",about:"Categories largest first with a line for their running share, to show which few account for most of the total.",see:["bin-pareto","bar-chart"]},{id:"stacked-bars-and-shares",kind:"chart",title:"Stacked bars and shares",tab:"plots",about:"Each bar split into its colours, as counts or as each colour\u2019s share of its own total, to show what a category is made of.",see:["bar-chart"]},{id:"nested-categories",kind:"chart",title:"Nested categories",tab:"plots",about:"A box or bar with categories inside categories, such as lots with their wafers, to show whether variation sits between or within the groups.",guide:[e.ranges],see:["box-plot","bar-chart"]},{id:"panels-small-multiples",kind:"chart",title:"Panels (small multiples)",tab:"plots",about:"One small chart per value of a field, on shared axes, to compare the same view across groups side by side.",guide:[e.ranges],see:["box-plot","scatter-plot","histogram"]},{id:"statistics-table",kind:"table",title:"Statistics table",tab:"data",about:"One row per test and group: the count, mean, spread, extremes, limits and capability, to read the numbers behind the charts.",see:["dies-table","process-capability"]},{id:"dies-table",kind:"table",title:"Dies table",tab:"data",about:"One row per die with its position, bin and values, to see exactly which dies a chart counts; it exports to CSV.",see:["wafers-table","statistics-table"]},{id:"wafers-table",kind:"table",title:"Wafers table",tab:"data",about:"One row per wafer with its attributes and its yield, to check what each wafer is and to compare them.",see:["dies-table","yield-by-wafer"]}];export function catalogueEntry(t){return CHART_CATALOGUE.find(a=>a.id===t)}
|
|
1
|
+
import{GUIDE_SECTIONS as e}from"./guideSections.js";export const CHART_CATALOGUE=[{id:"bin-map",kind:"map",title:"Bin map",mode:["hardBin","softBin"],example:"display-control.html",about:"Each die coloured by its hard or soft bin, passing bins in greens and failing bins in other colours, to show where the failures are.",see:["test-value-map","bin-pareto"]},{id:"test-value-map",kind:"map",title:"Test value map",mode:["value"],example:"test-values.html",about:"Each die coloured by one test\u2019s value on a colour scale, with the test\u2019s limits on the colour bar, to show where on the wafer the value shifts.",see:["bin-map","limit-passfail-map","test-passfail-map","value-histogram"]},{id:"limit-passfail-map",kind:"map",title:"Limit pass/fail map",example:"test-values.html",about:"Each die coloured by whether its value for one test lies inside the test\u2019s limits, with the dies below the low limit and above the high limit marked apart, to show where a test fails its limits.",see:["test-value-map","test-passfail-map","pass-rate-by-test"]},{id:"test-passfail-map",kind:"map",title:"Test pass/fail map",example:"test-values.html",about:"Each die coloured by the pass or fail the tester recorded for one test, to show where a test failed, whether or not it has a measured value.",see:["limit-passfail-map","test-value-map","pass-rate-by-test"]},{id:"die-attribute-map",kind:"map",title:"Die attribute map",mode:["metadata"],example:"metadata-mode.html",about:"Each die coloured by an attribute the data carries (a test site, a probe step, a zone), to show whether a pattern follows it.",see:["bin-map"]},{id:"stacked-map",kind:"map",title:"Stacked map",mode:["stackedBins","stackedSoftBins","stackedValues"],example:"lot-stack-analysis.html",about:"The wafers of a lot laid over one another die by die: how often a bin occurs, or a value\u2019s mean, median or spread at each position, to show what repeats from wafer to wafer.",see:["difference-map","reticle-cell-yield"]},{id:"pat-verdict-map",kind:"map",title:"PAT verdict map",tab:"overview",about:"Each die coloured by its part average testing verdict (within the limits, an outlier or failing), on the map or on every wafer of a gallery, to show where the PAT outliers sit.",see:["part-average-testing-pat","bin-map","test-value-map"]},{id:"difference-map",kind:"map",title:"Difference map",card:"difference-map",tab:"distributions",about:"One group\u2019s wafer map less another\u2019s, die position by die position, to show where on the wafer they differ.",guide:[e.heatmap],see:["stacked-map","comparison-by-group"]},{id:"yield-by-wafer",kind:"chart",title:"Yield by wafer",cards:["card-yield"],tab:"overview",about:"Yield of each wafer or group: passing dies as a share of judged dies, with partial and edge-excluded dies left out. The line is the median bar.",see:["bin-pareto","what-divides-yield"]},{id:"bin-pareto",kind:"chart",title:"Bin pareto",cards:["card-bin-pareto"],tab:"overview",about:"Dies in each bin, largest first, so the bins that cost the most yield lead. Shown alone, the line is the running share of all dies.",see:["bin-map","pareto"]},{id:"pass-rate-by-test",kind:"chart",title:"Pass rate by test",cards:["card-pass-rate"],tab:"overview",about:"The share of judged dies that pass each test, lowest first, so the tests that fail the most dies lead.",see:["process-capability","bin-pareto"]},{id:"ring-yield",kind:"chart",title:"Ring yield",card:"ring-yield",tab:"overview",about:"Yield of each ring, from the wafer centre to its edge, to show a radial pattern.",see:["ring-yield-by-wafer","quadrant-yield","bin-map"]},{id:"ring-yield-by-wafer",kind:"chart",title:"Ring yield by wafer",cards:["card-ring-wafer"],tab:"overview",about:"Yield of each ring on each wafer (or group), as a colour, to show whether a radial pattern is on every wafer or on one.",guide:[e.heatmap],see:["ring-yield","heatmap"]},{id:"quadrant-yield",kind:"chart",title:"Quadrant yield",card:"quadrant-yield",tab:"overview",about:"Yield of each quarter of the wafer, to show a one-sided pattern.",see:["quadrant-yield-by-wafer","ring-yield","bin-map"]},{id:"quadrant-yield-by-wafer",kind:"chart",title:"Quadrant yield by wafer",cards:["card-quadrant-wafer"],tab:"overview",about:"Yield of each quarter of the wafer on each wafer (or group), as a colour, to show whether a one-sided pattern is on every wafer or on one.",guide:[e.heatmap],see:["quadrant-yield","ring-yield-by-wafer","heatmap"]},{id:"reticle-cell-yield",kind:"chart",title:"Reticle cell yield",card:"reticle-yield",tab:"overview",about:"Yield of each position in the reticle, pooled over every shot on every wafer. A cell low everywhere points at the mask rather than the wafer.",see:["stacked-map","ring-yield"]},{id:"yield-by-site",kind:"chart",title:"Yield by site",cards:["card-site"],tab:"overview",about:"Yield of each test site (probe position): passing dies as a share of judged dies, over every wafer. Shown when the dies come from two sites or more.",see:["yield-by-wafer","reticle-cell-yield"]},{id:"re-probed-dies",kind:"chart",title:"Re-probed dies",cards:["card-reprobed"],tab:"overview",about:"The share of dies that were probed more than once, by ring on each wafer (or group), to show where the retests are. Drawn when the lot has re-probed dies.",guide:[e.heatmap],see:["yield-by-site","ring-yield-by-wafer","heatmap"]},{id:"tests-by-wafer",kind:"chart",title:"Tests by wafer",cards:["card-tests-wafer"],tab:"distributions",about:"The tests whose wafers (or groups) differ most, one row each, as a grid of z-scores: where a wafer is above or below that test\u2019s average.",guide:[e.heatmap],see:["heatmap","test-value-distribution","comparison-by-group"]},{id:"test-value-distribution",kind:"chart",title:"Test value distribution",cards:["card-box"],tab:"distributions",about:"How one test\u2019s values spread on each wafer or group: the box holds the middle half of the dies, the line inside it is the median, and the whiskers reach the lowest and highest values.",see:["box-plot","value-histogram"]},{id:"value-histogram",kind:"chart",title:"Value histogram",cards:["card-histogram"],tab:"distributions",about:"How one test\u2019s values are distributed: the number of dies in each value range, with the test\u2019s limits marked.",see:["histogram","probability-plot","test-value-map"]},{id:"histogram-of-the-dies-picked",kind:"chart",title:"Histogram of the dies picked",cards:["drill-histogram"],tab:"drilldown",about:"How one test\u2019s values are distributed over the dies picked: the number of dies in each value range, with the test\u2019s limits marked.",see:["value-histogram"]},{id:"wafer-to-wafer-trend",kind:"chart",title:"Wafer-to-wafer trend",cards:["card-trend"],tab:"distributions",about:"Each wafer\u2019s mean of one test in wafer order, with a band of one standard deviation either side, to show drift through the lot.",guide:[e.bands],see:["control-chart","line-chart"]},{id:"test-scatter",kind:"chart",title:"Test scatter",cards:["card-scatter"],tab:"correlation",about:"One test against another, a point per die, to show whether the two move together. r is the correlation coefficient and n the number of dies.",guide:[e.fit],see:["test-correlation-matrix","scatter-plot"]},{id:"test-correlation-matrix",kind:"chart",title:"Test correlation matrix",card:"correlation",tab:"correlation",about:"The correlation of every pair of tests. A strong colour means two tests move together; click a cell to show the pair in the scatter.",see:["test-scatter","heatmap"]},{id:"process-capability",kind:"chart",title:"Process capability",card:"capability",tab:"distributions",about:"Every test with limits on one scale, the low limit at 0 and the high limit at 1, sorted lowest Ppk first, so the tests closest to their limits lead.",guide:[e.goal],see:["capability-goal-plot","pass-rate-by-test"]},{id:"comparison-by-group",kind:"table",title:"Comparison by group",card:"comparison",tab:"distributions",about:"Yield and each test compared between groups, counting each wafer once, with how likely a difference this large is by chance.",guide:[e.groups],see:["what-divides-yield","difference-map","box-plot"]},{id:"what-divides-yield",kind:"table",title:"What divides yield",card:"commonality",tab:"overview",about:"The wafer and lot fields ranked by how strongly they divide yield, as places to look for a cause.",guide:[e.dividesYield],see:["comparison-by-group","yield-by-wafer"]},{id:"part-average-testing-pat",kind:"table",title:"Part average testing (PAT)",card:"pat",tab:"overview",about:"Dies outside part average testing limits, set from each wafer\u2019s own spread of each test (the AEC-Q001 method), by wafer and by test.",guide:[e.pat],see:["pat-verdict-map","process-capability","scatter-plot"]},{id:"scatter-plot",kind:"chart",title:"Scatter plot",chart:"scatter",tab:"plots",about:"One field against another, a point per die or per wafer, to show whether they move together.",guide:[e.fit],see:["test-scatter","heatmap"]},{id:"histogram",kind:"chart",title:"Histogram",chart:"histogram",tab:"plots",about:"How a value is distributed: the number of dies or wafers in each value range.",see:["value-histogram","probability-plot","box-plot"]},{id:"box-plot",kind:"chart",title:"Box plot",chart:"box",tab:"plots",about:"How a value spreads in each category: the box holds the middle half, the line inside it is the median, and the whiskers reach the lowest and highest values.",guide:[e.groups],see:["test-value-distribution","nested-categories","probability-plot"]},{id:"bar-chart",kind:"chart",title:"Bar chart",chart:"bar",tab:"plots",about:"A count, a share or a summary value for each category, side by side.",see:["pareto","stacked-bars-and-shares","yield-by-wafer"]},{id:"line-chart",kind:"chart",title:"Line chart",chart:"line",tab:"plots",about:"A summary value in order along the X axis (wafer order, a test, a condition), to show a trend.",guide:[e.bands],see:["control-chart","sweep","wafer-to-wafer-trend"]},{id:"sweep",kind:"chart",title:"Sweep",chart:"sweep",tab:"plots",about:"A measured value against a swept condition, a curve per series, to show how the part responds across the range.",see:["line-chart"]},{id:"probability-plot",kind:"chart",title:"Probability plot",chart:"probability",tab:"plots",about:"The share of values at or below each value, a curve per colour, so whole distributions compare, tails included.",guide:[e.probability],see:["histogram","box-plot"]},{id:"control-chart",kind:"chart",title:"Control chart",chart:"control",tab:"plots",about:"One value per wafer in order against its centre line and control limits, with the points that break a Western Electric rule marked.",guide:[e.control],see:["wafer-to-wafer-trend","line-chart","capability-goal-plot"]},{id:"capability-goal-plot",kind:"chart",title:"Capability goal plot",chart:"goal",tab:"plots",about:"Each test with both limits placed by how far its mean is off centre and how wide its spread is, as shares of its limit window. A test outside the solid triangle is short of Ppk 1.33.",guide:[e.goal],see:["process-capability","control-chart"]},{id:"heatmap",kind:"chart",title:"Heatmap",chart:"heatmap",tab:"plots",about:"A value for every pair of two categories, as a colour, to show where the two interact.",guide:[e.heatmap],see:["test-correlation-matrix","difference-map","bar-chart"]},{id:"pareto",kind:"chart",title:"Pareto",tab:"plots",about:"Categories largest first with a line for their running share, to show which few account for most of the total.",see:["bin-pareto","bar-chart"]},{id:"stacked-bars-and-shares",kind:"chart",title:"Stacked bars and shares",tab:"plots",about:"Each bar split into its colours, as counts or as each colour\u2019s share of its own total, to show what a category is made of.",see:["bar-chart"]},{id:"nested-categories",kind:"chart",title:"Nested categories",tab:"plots",about:"A box or bar with categories inside categories, such as lots with their wafers, to show whether variation sits between or within the groups.",guide:[e.ranges],see:["box-plot","bar-chart"]},{id:"panels-small-multiples",kind:"chart",title:"Panels (small multiples)",tab:"plots",about:"One small chart per value of a field, on shared axes, to compare the same view across groups side by side.",guide:[e.ranges],see:["box-plot","scatter-plot","histogram"]},{id:"statistics-table",kind:"table",title:"Statistics table",tab:"data",about:"One row per test and group: the count, mean, spread, extremes, limits and capability, to read the numbers behind the charts.",see:["dies-table","process-capability"]},{id:"dies-table",kind:"table",title:"Dies table",tab:"data",about:"One row per die with its position, bin and values, to see exactly which dies a chart counts; it exports to CSV.",see:["wafers-table","statistics-table"]},{id:"wafers-table",kind:"table",title:"Wafers table",tab:"data",about:"One row per wafer with its attributes and its yield, to check what each wafer is and to compare them.",see:["dies-table","yield-by-wafer"]}];export function catalogueEntry(t){return CHART_CATALOGUE.find(a=>a.id===t)}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Die } from '../core/dies.js';
|
|
2
|
+
import { type TestDef } from '../renderer/buildWaferMap.js';
|
|
3
|
+
import type { CorrelationMatrix } from './correlation.js';
|
|
4
|
+
/** At most this many tests, the ones that fail on most dies, enter the matrix. */
|
|
5
|
+
export declare const CO_FAILURE_TESTS = 100;
|
|
6
|
+
/**
|
|
7
|
+
* The failing dies of every test with limits that fails on two dies or more, compared pair by pair. A pair's `r` is the share
|
|
8
|
+
* of dies failing either that fail both (null when neither fails anywhere) and its `n` is the dies failing either.
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildCoFailureMatrix(dies: readonly Die[], testDefs: readonly TestDef[]): CorrelationMatrix;
|
|
11
|
+
//# sourceMappingURL=coFailure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isParametricTest as d}from"../renderer/buildWaferMap.js";import{markedTestLabel as x,derivedFields as b}from"../renderer/testLabel.js";import{dieFailsTest as F}from"./testPassRate.js";export const CO_FAILURE_TESTS=100;const I=r=>r.limitLow!==void 0||r.limitHigh!==void 0;export function buildCoFailureMatrix(r,g){const i=g.filter(t=>t.testNumber!==void 0&&d(t)&&I(t));if(i.length<2)return{tests:[],cells:[]};const o=new Map,h=[];for(const t of r){let e;for(let n=0;n<i.length;n++)F(t,i[n],"spec")===!0&&((e??=[]).push(n),o.set(n,(o.get(n)??0)+1));e&&h.push(e)}const s=[...o.entries()].filter(([,t])=>t>=2).sort((t,e)=>e[1]-t[1]).slice(0,CO_FAILURE_TESTS).map(([t])=>t).sort((t,e)=>t-e);if(s.length<2)return{tests:[],cells:[]};const u=new Map(s.map((t,e)=>[t,e])),a=new Float64Array(s.length*s.length);for(const t of h){const e=t.filter(n=>u.has(n)).map(n=>u.get(n));for(let n=0;n<e.length;n++)for(let l=n+1;l<e.length;l++)a[e[n]*s.length+e[l]]++}const p=s.map(t=>({testNumber:i[t].testNumber,label:x(i[t],i[t].testNumber),unit:i[t].unit,...b(i[t])})),f=[];for(let t=0;t<s.length;t++)for(let e=0;e<s.length;e++){if(e===t){f.push({xIndex:e,yIndex:t,r:1,n:o.get(s[e])??0});continue}const n=Math.min(e,t),l=Math.max(e,t),m=a[n*s.length+l],c=(o.get(s[e])??0)+(o.get(s[t])??0)-m;f.push({xIndex:e,yIndex:t,r:c>0?m/c:null,n:c})}return{tests:p,cells:f}}
|
|
@@ -34,7 +34,15 @@ export interface CommonalityRow {
|
|
|
34
34
|
};
|
|
35
35
|
/** `worst` to `best` in percentage points, always positive. */
|
|
36
36
|
spread: number;
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* The comparison the p and q come from, when the field was read after allowing for another (the strongest other field that
|
|
39
|
+
* explains the same measure): its groups' values less that field's group means. Absent when `comparison` is what was ranked.
|
|
40
|
+
* `comparison` always holds the measure's own means, so a row reads in percent whichever way it was ranked.
|
|
41
|
+
*/
|
|
42
|
+
adjusted?: GroupComparison;
|
|
43
|
+
/** The fields allowed for, when `adjusted` is set. */
|
|
44
|
+
allowedFor?: CommonalityField[];
|
|
45
|
+
/** Benjamini–Hochberg q of Welch's p (Kruskal–Wallis's where Welch cannot be computed) of `adjusted ?? comparison`, over every row. */
|
|
38
46
|
pAdjusted: number;
|
|
39
47
|
}
|
|
40
48
|
export interface CommonalityResult {
|
|
@@ -44,10 +52,17 @@ export interface CommonalityResult {
|
|
|
44
52
|
/** The fail bins compared, most dies first. */
|
|
45
53
|
bins: number[];
|
|
46
54
|
/**
|
|
47
|
-
*
|
|
48
|
-
* say which of
|
|
55
|
+
* Sets of fields that divide the wafers identically (every group of one is a group of the other), each of two or more
|
|
56
|
+
* fields: the wafers cannot say which of them it is.
|
|
49
57
|
*/
|
|
50
|
-
|
|
58
|
+
tied: CommonalityField[][];
|
|
59
|
+
/** Sets of fields that nearly match without being identical: how many of the wafers they put in matching groups. */
|
|
60
|
+
overlapping: Array<{
|
|
61
|
+
fields: CommonalityField[];
|
|
62
|
+
with: CommonalityField[];
|
|
63
|
+
agree: number;
|
|
64
|
+
of: number;
|
|
65
|
+
}>;
|
|
51
66
|
}
|
|
52
67
|
/** How many of the most common fail bins are compared, besides yield. */
|
|
53
68
|
export declare const COMMONALITY_BINS = 5;
|
|
@@ -59,4 +74,22 @@ export declare const COMMONALITY_BINS = 5;
|
|
|
59
74
|
export declare function rankCommonality(wafers: readonly CommonalityWafer[], fields: readonly CommonalityField[], curation?: Record<string, FacetCuration>): CommonalityResult;
|
|
60
75
|
/** A measure as the reader names it: "Yield", "Hard bin 2". */
|
|
61
76
|
export declare const measureLabel: (m: CommonalityMeasure, binName?: (bin: number) => string | undefined) => string;
|
|
77
|
+
/** How plainly a row's groups differ, from its q: the word the card shows in place of the p-values. */
|
|
78
|
+
export type CommonalityConfidence = 'clear' | 'possible' | 'none';
|
|
79
|
+
/** q under 0.05 is clear, under 0.2 possible; a q that could not be computed is not clear. */
|
|
80
|
+
export declare const commonalityConfidence: (q: number) => CommonalityConfidence;
|
|
81
|
+
export declare const CONFIDENCE_LABEL: Record<CommonalityConfidence, string>;
|
|
82
|
+
/** One field with its strongest measure, and its other measures behind it. */
|
|
83
|
+
export interface CommonalityFieldRows {
|
|
84
|
+
field: CommonalityField;
|
|
85
|
+
/** Every field that gives the same groups of wafers, `field` first: one row stands for all of them. */
|
|
86
|
+
fields: CommonalityField[];
|
|
87
|
+
primary: CommonalityRow;
|
|
88
|
+
others: CommonalityRow[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The rows as one entry per field: yield leads unless a fail bin is clearer, then the measure with the lowest q, the field's other measures follow it.
|
|
92
|
+
* Fields are ordered clear, then possible, then not clear, and within each by the size of the leading difference.
|
|
93
|
+
*/
|
|
94
|
+
export declare function groupCommonalityRows(rows: readonly CommonalityRow[], tied?: readonly (readonly CommonalityField[])[]): CommonalityFieldRows[];
|
|
62
95
|
//# sourceMappingURL=commonality.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{diePassStatus as
|
|
1
|
+
import{diePassStatus as _,isYieldEligibleDie as B}from"../core/dies.js";import{benjaminiHochberg as $}from"./math.js";import{compareGroups as I,comparisonP as z}from"./groupCompare.js";import{adjustedFits as D,mergePartitions as H,overlapping as G,partitionId as T}from"./groupEffects.js";import{facetValueOf as V}from"./facets.js";import{yieldCounts as q}from"./yield.js";import{compareNatural as J}from"../core/utils.js";export const COMMONALITY_BINS=5;function K(s,p){let m=0,d=0;for(const l of s.dies)!B(l)||l.hbin===void 0||(d++,l.hbin===p&&m++);return d?m/d*100:NaN}export function rankCommonality(s,p,m){const d=s.map(e=>{const{pass:n,total:o}=q(e.dies,e.passBins);return o?n/o*100:NaN}),l=new Map;for(const e of s){const n=new Set(e.passBins);for(const o of e.dies)B(o)&&o.hbin!==void 0&&_(o,n)===!1&&l.set(o.hbin,(l.get(o.hbin)??0)+1)}const k=[...l].sort((e,n)=>n[1]-e[1]||e[0]-n[0]).slice(0,COMMONALITY_BINS).map(([e])=>e),w=new Map(k.map(e=>[e,s.map(n=>K(n,e))])),t=[],r=[],h=[];for(const e of p){const n=s.map(c=>V(c.metadata,e.key,m)),o=[...new Set(n.filter(c=>c!==void 0))].sort(J);if(o.filter(c=>n.filter(N=>N===c).length>=2).length<2){r.push(e);continue}h.push({field:e,value:n,keys:o})}const u=H(h.map(e=>({key:e.field.key,groupOf:e.value}))),f=new Map(p.map(e=>[e.key,e])),L=[[{kind:"yield"},d],...k.map(e=>[{kind:"bin",bin:e},w.get(e)])];for(const[e,n]of L){const o=new Map(D(n.map(a=>Number.isFinite(a)?a:void 0),u).map(a=>[a.partition.id,a]));for(const{field:a,value:c,keys:N}of h){const F=I(N.map(i=>({key:i,values:n.filter((y,x)=>c[x]===i)}))),j=F.groups.filter(i=>!F.tooSmall.includes(i.key)&&Number.isFinite(i.mean));if(j.length<2)continue;const C=j.reduce((i,y)=>y.mean<i.mean?y:i),O=j.reduce((i,y)=>y.mean>i.mean?y:i),[P,S]=e.kind==="yield"?[C,O]:[O,C],g=o.get(T(c));let b=g?.allowedFor?I(N.map(i=>({key:i,values:g.used.filter((y,x)=>c[x]===i&&y!==void 0)}))):void 0;b?.welch&&g?.fitted&&(b={...b,welch:{...b.welch,p:g.fitted.p}}),t.push({field:a,measure:e,comparison:F,worst:{key:P.key,mean:P.mean},best:{key:S.key,mean:S.mean},spread:O.mean-C.mean,pAdjusted:NaN,...b&&g?.allowedFor?{adjusted:b,allowedFor:g.allowedFor.map(i=>f.get(i)??{key:i,label:i})}:{}})}}const M=e=>z(e.adjusted??e.comparison),v=t.filter(e=>Number.isFinite(M(e))),R=$(v.map(M));v.forEach((e,n)=>{e.pAdjusted=R[n]});const A=e=>Number.isFinite(e.pAdjusted)?e.pAdjusted:1/0;t.sort((e,n)=>A(e)-A(n)||n.spread-e.spread);const Y=u.filter(e=>e.keys.length>1).map(e=>e.keys.map(n=>f.get(n))),E=[];return u.forEach((e,n)=>{for(const o of G(e,u))u.indexOf(o.partition)>n&&E.push({fields:e.keys.map(a=>f.get(a)),with:o.partition.keys.map(a=>f.get(a)),agree:o.agree,of:o.of})}),{rows:t,untestable:r,bins:k,tied:Y,overlapping:E}}export const measureLabel=(s,p)=>s.kind==="yield"?"Yield":`Hard bin ${s.bin}${p?.(s.bin)?` (${p(s.bin)})`:""}`,commonalityConfidence=s=>s<.05?"clear":s<.2?"possible":"none",CONFIDENCE_LABEL={clear:"Clear",possible:"Possible",none:"Not clear"};export function groupCommonalityRows(s,p=[]){const m=new Map;for(const t of s)(m.get(t.field.key)??m.set(t.field.key,[]).get(t.field.key)).push(t);const d=t=>["clear","possible","none"].indexOf(commonalityConfidence(t.pAdjusted)),l=new Map;for(const t of p)for(const r of t)l.set(r.key,t);const k=new Set,w=[];for(const t of m.values()){const r=l.get(t[0].field.key);if(r){if(k.has(r))continue;k.add(r)}const h=t.find(f=>f.measure.kind==="yield"),u=h&&d(h)<=d(t[0])?h:t[0];w.push({field:t[0].field,fields:r?[t[0].field,...r.filter(f=>f.key!==t[0].field.key)]:[t[0].field],primary:u,others:t.filter(f=>f!==u)})}return w.sort((t,r)=>d(t.primary)-d(r.primary)||r.primary.spread-t.primary.spread)}
|
|
@@ -110,6 +110,13 @@ export declare const CORRELATION_WORK_BUDGET = 250000000;
|
|
|
110
110
|
export declare const CORRELATION_SCORE_BUDGET = 25000000;
|
|
111
111
|
/** The sentence a panel puts next to a matrix built from a sample of the dies or the tests. */
|
|
112
112
|
export declare function correlationSampleNote(m: Pick<CorrelationMatrix, 'sample' | 'testSample'>): string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* The dies of several groups with each group's mean taken off every test's values, as dies of test values only, for a
|
|
115
|
+
* correlation within groups: the correlation that is left when a difference between groups (a corner lot's slow and fast
|
|
116
|
+
* wafers moving every test together) is removed. A group with one value of a test contributes none of it. Above the die
|
|
117
|
+
* budget an even spread of the dies is kept, as the matrix itself would; the means are those of every die.
|
|
118
|
+
*/
|
|
119
|
+
export declare function demeanWithinGroups(groups: ReadonlyArray<ReadonlyArray<Die>>, testDefs: TestDef[]): Die[];
|
|
113
120
|
/**
|
|
114
121
|
* Pearson correlation matrix for the parametric tests in `testDefs` across the
|
|
115
122
|
* dies in `dies` — every test up to `CORRELATION_TEST_BUDGET` (above it, the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dieHasValues as
|
|
1
|
+
import{dieHasValues as C,testValue as _}from"../core/dieTable.js";import{isParametricTest as k}from"../renderer/buildWaferMap.js";import{markedTestLabel as P,derivedFields as D}from"../renderer/testLabel.js";export function pearsonFromSums(e,o,u,h,l,d){if(e<3)return null;const c=o/e,i=u/e,n=d/e-c*i,f=h/e-c*c,g=l/e-i*i,x=Math.sqrt(f*g);return x===0?null:Math.max(-1,Math.min(1,n/x))}export function pearsonOfPairs(e){let o=0,u=0,h=0,l=0,d=0,c=0;for(let i=0;i<e.length;i++){const{x:n,y:f}=e[i];!Number.isFinite(n)||!Number.isFinite(f)||(o++,u+=n,h+=f,l+=n*n,d+=f*f,c+=n*f)}return{r:pearsonFromSums(o,u,h,l,d,c),n:o}}export const CORRELATION_DIE_BUDGET=25e3;function E(e,o){const u=[],h=e/o;for(let l=0;l<o;l++)u.push(Math.floor(l*h));return u}export const CORRELATION_TEST_BUDGET=300,CORRELATION_WORK_BUDGET=25e7,CORRELATION_SCORE_BUDGET=25e6;export function correlationSampleNote(e){const o=[];return e.testSample&&o.push(`Among the ${e.testSample.used.toLocaleString()} of ${e.testSample.of.toLocaleString()} tests with the most dies outside their limits, then the widest spread`),e.sample&&o.push(`${o.length?"from":"From"} a ${e.sample.used.toLocaleString()}-die sample of ${e.sample.of.toLocaleString()}, spread evenly across the lot`),o.length?o.join(", "):void 0}function z(e,o,u,h){const l=e.length,d=new Float64Array(l),c=new Float64Array(l),i=new Float64Array(l),n=new Float64Array(l),f=e.map(a=>o.get(a.testNumber)?.limitLow),g=e.map(a=>o.get(a.testNumber)?.limitHigh);for(const a of u)for(let s=0;s<l;s++){const t=_(a,e[s].testNumber);t===void 0||!Number.isFinite(t)||(d[s]++,c[s]+=t,i[s]+=t*t,(f[s]!==void 0&&t<f[s]||g[s]!==void 0&&t>g[s])&&n[s]++)}const x=a=>{if(d[a]<3)return-1;const s=c[a]/d[a],t=Math.sqrt(Math.max(0,i[a]/d[a]-s*s)),p=f[a]!==void 0&&g[a]!==void 0?g[a]-f[a]:Math.abs(s);return p>0?t/p:0},y=e.map((a,s)=>({i:s,fails:d[s]<3?-1:n[s],spread:x(s)}));return y.sort((a,s)=>s.fails-a.fails||s.spread-a.spread||a.i-s.i),y.slice(0,h).map(a=>a.i).sort((a,s)=>a-s).map(a=>e[a])}function X(e){return e.filter(o=>o.testNumber!==void 0&&k(o)).map(o=>({testNumber:o.testNumber,label:P(o,o.testNumber),unit:o.unit,...D(o)}))}export function demeanWithinGroups(e,o){const u=X(o).map(c=>c.testNumber),h=e.map(c=>u.map(i=>{let n=0,f=0;for(const g of c){const x=_(g,i);x!==void 0&&Number.isFinite(x)&&(n++,f+=x)}return n?f/n:0})),l=[];return e.forEach((c,i)=>{for(const n of c)C(n)&&l.push({die:n,group:i})}),(l.length>CORRELATION_DIE_BUDGET?E(l.length,CORRELATION_DIE_BUDGET).map(c=>l[c]):l).map(({die:c,group:i})=>{const n={};return u.forEach((f,g)=>{const x=_(c,f);x!==void 0&&Number.isFinite(x)&&(n[f]=x-h[i][g])}),{x:c.x,y:c.y,testValues:n}})}export function buildCorrelationMatrix(e,o){const u=X(o);if(u.length<2)return{tests:u,cells:[]};const h=e.filter(C),d=h.length>CORRELATION_DIE_BUDGET?E(h.length,CORRELATION_DIE_BUDGET).map(r=>h[r]):h,c=u.length>CORRELATION_TEST_BUDGET,i=c?z(u,new Map(o.flatMap(r=>r.testNumber===void 0?[]:[[r.testNumber,r]])),d.length*u.length>CORRELATION_SCORE_BUDGET?E(d.length,Math.max(1,Math.floor(CORRELATION_SCORE_BUDGET/u.length))).map(r=>d[r]):d,CORRELATION_TEST_BUDGET):u,n=i.length*(i.length-1)/2,f=Math.max(1,Math.floor(CORRELATION_WORK_BUDGET/Math.max(1,n))),g=d.length>f?E(d.length,f).map(r=>d[r]):d,x=g.length<h.length,y=i.length,a=i.map(r=>r.testNumber),s=y*(y-1)/2,t=new Float64Array(s),p=new Float64Array(y),b=new Float64Array(s),M=new Float64Array(s),w=new Float64Array(s),I=new Float64Array(s),S=new Float64Array(s);function v(r,m){return r*y-(r*(r+1)>>1)+(m-r-1)}const L=new Float64Array(y),T=new Uint8Array(y);for(const r of g){T.fill(0);for(let m=0;m<y;m++){const N=_(r,a[m]);N!==void 0&&Number.isFinite(N)&&(L[m]=N,T[m]=1)}for(let m=0;m<y;m++){if(!T[m])continue;p[m]++;const N=L[m];for(let F=m+1;F<y;F++){if(!T[F])continue;const A=L[F],R=v(m,F);t[R]++,b[R]+=N,M[R]+=A,w[R]+=N*N,I[R]+=A*A,S[R]+=N*A}}}const Y=r=>pearsonFromSums(t[r],b[r],M[r],w[r],I[r],S[r]),O=[];for(let r=0;r<y;r++)for(let m=0;m<y;m++){if(m===r){O.push({xIndex:m,yIndex:r,r:1,n:p[m]});continue}const N=Math.min(m,r),F=Math.max(m,r),A=v(N,F);O.push({xIndex:m,yIndex:r,r:Y(A),n:t[A]})}return{tests:i,cells:O,...x?{sample:{of:h.length,used:g.length}}:{},...c?{testSample:{of:u.length,used:i.length}}:{}}}export function filterCorrelationMatrix(e,{threshold:o=.3,minTests:u=6,maxTests:h=20}={}){const l=[];let d=0,c=0,i=null;for(const t of e.cells){if(t.xIndex>=t.yIndex||t.r===null)continue;const p=Math.abs(t.r);l.push({xi:t.xIndex,yi:t.yIndex,absR:p}),(i===null||p>Math.abs(i.r))&&(i={xLabel:e.tests[t.xIndex].label,yLabel:e.tests[t.yIndex].label,r:t.r})}l.sort((t,p)=>p.absR-t.absR);const n=new Set;for(const{xi:t,yi:p,absR:b}of l){const M=b<o;n.size>=h||M&&n.size>=u||(n.add(t),n.size<h&&n.add(p))}if(n.size<Math.min(u,e.tests.length))for(let t=0;t<e.tests.length&&n.size<Math.min(h,u,e.tests.length);t++)n.add(t);const f=(()=>{const t=Array.from(n),p=new Map,b=new Map;for(const{xi:w,yi:I,absR:S}of l)!n.has(w)||!n.has(I)||(p.set(w,(p.get(w)??0)+S),p.set(I,(p.get(I)??0)+S),b.set(w,(b.get(w)??0)+1),b.set(I,(b.get(I)??0)+1));const M=w=>(b.get(w)??0)>0?p.get(w)/b.get(w):0;return t.sort((w,I)=>M(I)-M(w))})(),g=f.map(t=>e.tests[t]),x=new Map(f.map((t,p)=>[t,p])),y=new Set(g.map(t=>t.testNumber)),a=e.cells.filter(t=>y.has(e.tests[t.xIndex].testNumber)&&y.has(e.tests[t.yIndex].testNumber)).map(t=>({xIndex:x.get(t.xIndex),yIndex:x.get(t.yIndex),r:t.r,n:t.n}));let s=0;for(const{xi:t,yi:p,absR:b}of l)n.has(t)&&n.has(p)?b>=.7?d++:b>=.4&&c++:b<o&&s++;return{matrix:{tests:g,cells:a},strongPairs:d,moderatePairs:c,hiddenWeakPairs:s,strongestPair:i}}
|
|
@@ -39,6 +39,8 @@ export interface DieRegionDef {
|
|
|
39
39
|
export declare function dieRadialPosition(d: Die, ctx: {
|
|
40
40
|
wafer?: Wafer;
|
|
41
41
|
}): number | undefined;
|
|
42
|
+
/** The value a plot's Ring field gives ring `ring`: the one name a ring condition in a plot spec must use. */
|
|
43
|
+
export declare const ringPlotValue: (ring: number) => string;
|
|
42
44
|
export declare const DIE_REGIONS: Record<DieRegionKey, DieRegionDef>;
|
|
43
45
|
/** The regions this population offers, in the order they are listed. */
|
|
44
46
|
export declare function availableRegions(ctx: RegionContext, anyPositioned: boolean): DieRegionDef[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{classifyDie as c}from"../core/classify.js";import{getReticleCell as f,getReticleShot as d}from"../core/reticle.js";import{requireRingCount as g}from"../core/ringCount.js";import{hasPosition as a}from"../core/dies.js";import{getRingLabel as s,radialPosition as p}from"../core/classify.js";export const DIE_REGION_KEYS=["ring","quadrant","reticleCell","reticleShot"];function m(e,r){return!!r.wafer&&a(e)&&e.physX!==void 0&&e.physY!==void 0}export function dieRadialPosition(e,r){return r.wafer&&a(e)&&e.physX!==void 0&&e.physY!==void 0?p(e,r.wafer):void 0}function i(e,r,n){if(m(e,r))return c(e,r.wafer,{ringCount:g(r,n)})}const
|
|
1
|
+
import{classifyDie as c}from"../core/classify.js";import{getReticleCell as f,getReticleShot as d}from"../core/reticle.js";import{requireRingCount as g}from"../core/ringCount.js";import{hasPosition as a}from"../core/dies.js";import{getRingLabel as s,radialPosition as p}from"../core/classify.js";export const DIE_REGION_KEYS=["ring","quadrant","reticleCell","reticleShot"];function m(e,r){return!!r.wafer&&a(e)&&e.physX!==void 0&&e.physY!==void 0}export function dieRadialPosition(e,r){return r.wafer&&a(e)&&e.physX!==void 0&&e.physY!==void 0?p(e,r.wafer):void 0}function i(e,r,n){if(m(e,r))return c(e,r.wafer,{ringCount:g(r,n)})}const t=new Map([["quadrant:NE",0],["quadrant:NW",1],["quadrant:SE",2],["quadrant:SW",3]]);function l(e,r){const n=r.reticle??r.wafer?.reticle;return n&&a(e)?f(e,n):void 0}export const ringPlotValue=e=>`Ring ${e}`,DIE_REGIONS={ring:{key:"ring",label:"Ring",available:(e,r)=>!!e.wafer&&r,valueOf:(e,r)=>{const n=i(e,r,"a ring of a plot");return n?ringPlotValue(n.ring):void 0},rawOf:(e,r)=>{const n=i(e,r,"a ring of a plot");return n?String(n.ring):void 0},grouping:{family:"ring",place:(e,r)=>{const n=i(e,r,"a ring");return n?{key:`ring:${n.ring}`,label:s(n.ring,r.ringCount)}:void 0},order:(e,r)=>e.localeCompare(r)}},quadrant:{key:"quadrant",label:"Quadrant",available:(e,r)=>!!e.wafer&&r,valueOf:(e,r)=>i(e,r,"a quadrant of a plot")?.quadrant,grouping:{family:"quadrant",place:(e,r)=>{const n=i(e,r,"a quadrant");return n?{key:`quadrant:${n.quadrant}`,label:n.quadrant}:void 0},order:(e,r)=>(t.get(e)??4)-(t.get(r)??4)}},reticleCell:{key:"reticleCell",label:"Reticle cell",available:(e,r)=>!!(e.reticle??e.wafer?.reticle)&&r,valueOf:(e,r)=>{const n=l(e,r);return n?`Reticle cell (${n.column}, ${n.row})`:void 0},grouping:{family:"reticle-position",place:(e,r)=>{const n=l(e,r);return n?{key:`reticle-position:cell:${n.column},${n.row}`,label:`Reticle cell (${n.column}, ${n.row})`}:void 0},order:(e,r)=>e.localeCompare(r,void 0,{numeric:!0})}},reticleShot:{key:"reticleShot",label:"Reticle shot",available:(e,r)=>!!(e.reticle??e.wafer?.reticle)&&r,valueOf:(e,r)=>{const n=r.reticle??r.wafer?.reticle;if(!n||!a(e))return;const{column:o,row:u}=d(e,n);return`Reticle shot (${o}, ${u})`}}};export function availableRegions(e,r){return DIE_REGION_KEYS.map(n=>DIE_REGIONS[n]).filter(n=>n.available(e,r))}
|
|
@@ -16,6 +16,8 @@ export interface DifferenceResult {
|
|
|
16
16
|
/** Positions with a difference, and the largest difference either way (for a colour range centred on zero). */
|
|
17
17
|
compared: number;
|
|
18
18
|
maxAbs: number;
|
|
19
|
+
/** The mean of the positions' values in group A, the level the differences are judged against. */
|
|
20
|
+
level: number;
|
|
19
21
|
}
|
|
20
22
|
/** Group A's mean minus group B's at every position; see the module comment for the rule. */
|
|
21
23
|
export declare function differenceMap(a: readonly DifferenceWafer[], b: readonly DifferenceWafer[], m: DifferenceMeasure): DifferenceResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{diePassStatus as
|
|
1
|
+
import{diePassStatus as S,hasPosition as x,isYieldEligibleDie as B,positionKey as l}from"../core/dies.js";import{copyDie as o,testValue as m}from"../core/dieTable.js";import{aggregateValues as v}from"../core/aggregates.js";function M(u,a){return u.map(i=>{const f=new Set(i.passBins);return i.dies.filter(x).map(t=>{let n;if("test"in a)n=m(t,a.test);else if(B(t)){const s=S(t,f);n=s===void 0?void 0:s?100:0}return o(t,{testValues:n===void 0||!Number.isFinite(n)?void 0:{0:n},testPass:void 0})})})}export function differenceMap(u,a,i){const f=v(M(u,i),"mean",0),t=v(M(a,i),"mean",0),n=new Map(t.map(e=>[l(e),m(e,0)]));let s=0,r=0,p=0;const c=new Set,V=f.map(e=>{const b=l(e);c.add(b);const d=m(e,0),h=n.get(b);if(d===void 0||h===void 0)return o(e,{testValues:void 0});const g=d-h;return s++,p+=Math.abs(d),r=Math.max(r,Math.abs(g)),o(e,{testValues:{0:g}})});for(const e of t)c.has(l(e))||V.push(o(e,{testValues:void 0}));return{dies:V,compared:s,maxAbs:r,level:s?p/s:0}}
|
|
@@ -12,6 +12,12 @@ export interface ExamplePicks {
|
|
|
12
12
|
partner?: number;
|
|
13
13
|
/** The lot field whose values best separate the wafers' means of the lead test. */
|
|
14
14
|
splitKey?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The lot fields whose groups differ in yield, strongest set of groups first. Fields that group the wafers identically (a
|
|
17
|
+
* tester and the handler docked to it) are listed together, so each is offered; a set is read after allowing for the
|
|
18
|
+
* strongest other one, as in What stands out. Absent when no field divides the wafers' yield.
|
|
19
|
+
*/
|
|
20
|
+
yieldKeys?: string[];
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* `tests` in order of how much each has to show: the share of its variation that lies between wafers (a shift, a drift,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{testValuesReader as
|
|
1
|
+
import{testValuesReader as z}from"../core/dieTable.js";import{facetValueOf as T}from"./facets.js";import{dieRadialPosition as j}from"./dieRegions.js";import{pearsonOfPairs as B}from"./correlation.js";import{benjaminiHochberg as G,sampleVariance as I}from"./math.js";import{adjustedFits as U,mergePartitions as X}from"./groupEffects.js";import{yieldCounts as C}from"./yield.js";const D=4e3,F=60,q=20,H=.1,O=o=>Math.sqrt(I(o));function P(o,l){const d=Math.min(o.length,l.length);return d<q?0:B(Array.from({length:d},(u,i)=>({x:o[i],y:l[i]}))).r??0}export function pickExamples(o,l,d,u){const i=l.slice(0,F),h=o.reduce((e,t)=>e+t.dies.length,0);if(i.length===0||h===0)return{ranked:[...l],...N(o,d,u)};const w=Math.max(1,Math.ceil(h/D)),_=z(i),g=new Float64Array(i.length),r=i.map(()=>[]),c=[],f=[],n=o.map(()=>[]);let M=0;o.forEach((e,t)=>{for(const s of e.dies){if(M++%w)continue;_(s,g);const a=c.length;c.push(t),n[t].push(a),f.push(j(s,{wafer:e.wafer})??NaN);for(let p=0;p<i.length;p++)r[p].push(g[p])}});const S=e=>r[e].reduce((t,s,a)=>(Number.isFinite(s)&&t.push(a),t),[]),x=e=>n.map(t=>{const s=t.map(a=>r[e][a]).filter(Number.isFinite);return s.length>=3?s.reduce((a,p)=>a+p,0)/s.length:void 0}),b=i.map((e,t)=>{const s=S(t);if(s.length<q)return 0;if(o.length===1)return Math.abs(P(s.map(m=>r[t][m]),s.map(m=>f[m]))||0);const a=O(s.map(m=>r[t][m])),p=x(t).filter(m=>m!==void 0);return a>0&&p.length>=2?Math.min(1,O(p)/a):0}),k=i.map((e,t)=>t).sort((e,t)=>b[t]-b[e]||e-t),R=[...k.map(e=>i[e]),...l.slice(F)],y=k[0];if(b[y]<=0)return{ranked:[...l],...N(o,d,u)};let E,A=.3;const V=S(y);for(const e of k.slice(1)){const t=V.filter(a=>Number.isFinite(r[e][a])),s=Math.abs(P(t.map(a=>r[y][a]),t.map(a=>r[e][a])));s>A&&(A=s,E=i[e])}const v=N(o,d,u,x(y));return{ranked:R,...E!==void 0?{partner:E}:{},...v}}function N(o,l,d,u){if(o.length<4)return{};const i=X(l.flatMap(r=>{const c=o.map(n=>T(n.metadata,r,d)),f=new Map;for(const n of c)n!==void 0&&f.set(n,(f.get(n)??0)+1);return f.size>=2&&f.size<=Math.max(2,Math.floor(o.length/2))&&[...f.values()].every(n=>n>=2)?[{key:r,groupOf:c}]:[]}));if(i.length===0)return{};const h=r=>{const c=U(r,i).filter(n=>n.fitted),f=G(c.map(n=>n.fitted.p));return c.map((n,M)=>({f:n,q:f[M]})).filter(n=>n.q<H).sort((n,M)=>n.f.fitted.p-M.f.fitted.p).map(n=>n.f.partition)},w=u?h(u)[0]?.keys[0]:void 0,_=o.map(r=>{const{pass:c,total:f}=C(r.dies,r.passBins);return f?c/f:void 0}),g=h(_).flatMap(r=>r.keys);return{...w?{splitKey:w}:{},...g.length?{yieldKeys:g}:{}}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** The group each wafer is in on one field (undefined: no value for it). */
|
|
2
|
+
export type GroupOf = ReadonlyArray<string | undefined>;
|
|
3
|
+
/** A set of groups, and every field that puts the wafers in exactly those groups. */
|
|
4
|
+
export interface Partition {
|
|
5
|
+
/** Which wafers are together, whatever the groups are called: equal for fields that group the wafers identically. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The fields, in the order given; the first names the set. */
|
|
8
|
+
keys: string[];
|
|
9
|
+
groupOf: GroupOf;
|
|
10
|
+
}
|
|
11
|
+
/** The wafers grouped as a number per group in order of first appearance, so equal groupings compare equal whatever their labels. */
|
|
12
|
+
export declare function partitionId(groupOf: GroupOf): string;
|
|
13
|
+
/** Fields that group the wafers identically are one partition. */
|
|
14
|
+
export declare function mergePartitions(fields: ReadonlyArray<{
|
|
15
|
+
key: string;
|
|
16
|
+
groupOf: GroupOf;
|
|
17
|
+
}>): Partition[];
|
|
18
|
+
/** Whether every group of `fine` lies inside one group of `coarse`: allowing for a finer set (a probe session) would remove the coarser one (its tester). */
|
|
19
|
+
export declare function nested(fine: GroupOf, coarse: GroupOf): boolean;
|
|
20
|
+
/** The wafers of each group that have a value, and the groups' comparison (undefined when it cannot be made). */
|
|
21
|
+
export interface GroupFit {
|
|
22
|
+
byGroup: Map<string, number[]>;
|
|
23
|
+
p: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* `lostDf`: degrees of freedom already spent estimating means that were taken out of `values` (see {@link adjustedFits}), so
|
|
27
|
+
* a difference read from what is left is judged on the wafers that remain free, not as if no mean had been estimated.
|
|
28
|
+
*/
|
|
29
|
+
export declare function fitGroups(values: ReadonlyArray<number | undefined>, groupOf: GroupOf, lostDf?: number): GroupFit | undefined;
|
|
30
|
+
/** The p below which another set of groups is allowed for before a set is read. */
|
|
31
|
+
export declare const ALLOW_FOR_P = 0.25;
|
|
32
|
+
/** One set of groups read against a measure. */
|
|
33
|
+
export interface AdjustedFit {
|
|
34
|
+
partition: Partition;
|
|
35
|
+
/** The values compared: the measure's own, or what is left of them after allowing for other sets of groups. */
|
|
36
|
+
used: Array<number | undefined>;
|
|
37
|
+
fitted?: GroupFit;
|
|
38
|
+
/** The first field of each set allowed for, when `used` is not the measure's own values. */
|
|
39
|
+
allowedFor?: string[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Every partition read against `values`. Each is read after allowing for the strongest other set that explains the measure
|
|
43
|
+
* at all (a raw p under {@link ALLOW_FOR_P}) and does not sit inside it, and for every coarser set it divides, so a field
|
|
44
|
+
* another hides (a weak card on wafers that also differ by recipe) is still found, and a probe session is read beyond its
|
|
45
|
+
* card. A set read this way says which it allowed for.
|
|
46
|
+
*/
|
|
47
|
+
export declare function adjustedFits(values: ReadonlyArray<number | undefined>, partitions: readonly Partition[]): AdjustedFit[];
|
|
48
|
+
/** How closely two sets of groups agree: wafers in matching groups, and wafers compared. */
|
|
49
|
+
export interface Overlap {
|
|
50
|
+
agree: number;
|
|
51
|
+
of: number;
|
|
52
|
+
}
|
|
53
|
+
/** Overlaps this share of wafers or more, short of identical, is worth saying (a tester and an operator who mostly go together). */
|
|
54
|
+
export declare const MIN_OVERLAP_SHARE = 0.75;
|
|
55
|
+
/**
|
|
56
|
+
* The wafers two sets of groups put in matching groups, when they have the same number of groups and each group of one matches a
|
|
57
|
+
* different group of the other (its commonest partner). Undefined when they cannot be matched that way: different numbers of
|
|
58
|
+
* groups, or two groups with the same partner (one set nests inside the other, which is a different thing to say). Identical
|
|
59
|
+
* sets agree on every wafer; they are one partition (see {@link mergePartitions}) and not reported as an overlap.
|
|
60
|
+
*/
|
|
61
|
+
export declare function overlapOf(a: GroupOf, b: GroupOf): Overlap | undefined;
|
|
62
|
+
/** The sets among `partitions` that overlap `partition` without being identical to it, strongest first. */
|
|
63
|
+
export declare function overlapping(partition: Partition, partitions: readonly Partition[]): Array<{
|
|
64
|
+
partition: Partition;
|
|
65
|
+
} & Overlap>;
|
|
66
|
+
//# sourceMappingURL=groupEffects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{compareGroups as k}from"./groupCompare.js";import{fUpperTail as y,tTwoSided as z}from"./math.js";export function partitionId(r){const i=new Map;return r.map(t=>t===void 0?"-":String(i.get(t)??i.set(t,i.size).get(t))).join(",")}export function mergePartitions(r){const i=new Map;for(const t of r){const n=partitionId(t.groupOf),e=i.get(n);e?e.keys.push(t.key):i.set(n,{id:n,keys:[t.key],groupOf:t.groupOf})}return[...i.values()]}export function nested(r,i){const t=new Map;return r.every((n,e)=>n===void 0||(t.has(n)?t.get(n)===i[e]:(t.set(n,i[e]),!0)))}export function fitGroups(r,i,t=0){const n=new Map;if(r.forEach((s,a)=>{const o=i[a];s===void 0||!Number.isFinite(s)||o===void 0||(n.get(o)??n.set(o,[]).get(o)).push(a)}),n.size<2)return;const e=k([...n].map(([s,a])=>({key:s,values:a.map(o=>r[o])})));let p=e.welch?.p??e.kruskal?.p;if(e.welch&&t>0){const s=e.welch.df2-t;p=s<1?1:e.welch.method==="welch-t"?z(e.welch.statistic,s):y(e.welch.statistic,e.welch.df1,s)}return p===void 0||!Number.isFinite(p)?void 0:{byGroup:n,p}}export const ALLOW_FOR_P=.25;function S(r,i){const t=overlapOf(r,i);return!!t&&t.agree/t.of>=MIN_OVERLAP_SHARE}export function adjustedFits(r,i){const t=i.map(e=>({partition:e,fitted:fitGroups(r,e.groupOf)})),n=t.filter(e=>e.fitted).sort((e,p)=>e.fitted.p-p.fitted.p);return t.map(e=>{const p=n.filter(f=>f.partition.id!==e.partition.id&&f.fitted.p<ALLOW_FOR_P&&!nested(f.partition.groupOf,e.partition.groupOf)&&!S(f.partition.groupOf,e.partition.groupOf)),s=p.filter(f=>nested(e.partition.groupOf,f.partition.groupOf)),a=p.find(f=>!nested(e.partition.groupOf,f.partition.groupOf)),o=[...a?[a]:[],...s];let u=[...r],d=e.fitted,w;if(o.length>0){let f=0;for(const g of o){f+=Math.max(0,(g.fitted?.byGroup.size??1)-1);const h=new Map;u.forEach((l,m)=>{const c=g.partition.groupOf[m];l!==void 0&&c!==void 0&&(h.get(c)??h.set(c,[]).get(c)).push(l)});const O=new Map([...h].map(([l,m])=>[l,m.reduce((c,M)=>c+M,0)/m.length]));u=u.map((l,m)=>{const c=g.partition.groupOf[m];return l===void 0||c===void 0?void 0:l-O.get(c)})}d=fitGroups(u,e.partition.groupOf,f)??e.fitted,d!==e.fitted&&(w=o.map(g=>g.partition.keys[0]))}return{partition:e.partition,used:d===e.fitted?[...r]:u,fitted:d,...w?{allowedFor:w}:{}}})}export const MIN_OVERLAP_SHARE=.75;export function overlapOf(r,i){const t=r.flatMap((o,u)=>o!==void 0&&i[u]!==void 0?[[o,i[u]]]:[]),n=new Set(t.map(o=>o[0])),e=new Set(t.map(o=>o[1]));if(t.length===0||n.size<2||n.size!==e.size)return;const p=new Map;for(const[o,u]of t){const d=p.get(o)??p.set(o,new Map).get(o);d.set(u,(d.get(u)??0)+1)}const s=new Map;let a=0;for(const[o,u]of p){const[d,w]=[...u].sort((f,g)=>g[1]-f[1]||(f[0]<g[0]?-1:1))[0];s.set(o,d),a+=w}return new Set(s.values()).size===n.size?{agree:a,of:t.length}:void 0}export function overlapping(r,i){return i.filter(t=>t.id!==r.id).flatMap(t=>{const n=overlapOf(r.groupOf,t.groupOf);return n&&n.agree<n.of&&n.agree/n.of>=MIN_OVERLAP_SHARE?[{partition:t,...n}]:[]}).sort((t,n)=>n.agree/n.of-t.agree/t.of)}
|
|
@@ -91,6 +91,9 @@ export interface FieldColumn {
|
|
|
91
91
|
failSide?: Int8Array;
|
|
92
92
|
/** Why this field cannot be used on this population. */
|
|
93
93
|
issue?: string;
|
|
94
|
+
/** For a field put in ranges: the middle of each row's range, in the measured field's own unit, so a line can run along them. */
|
|
95
|
+
mid?: Float64Array;
|
|
96
|
+
midUnit?: string;
|
|
94
97
|
/** For a set of tests: the test each row's value belongs to, by name, so a missing value is reported against its test. */
|
|
95
98
|
labelOf?: (row: number) => string;
|
|
96
99
|
}
|
|
@@ -189,7 +192,8 @@ export type PlotMarks =
|
|
|
189
192
|
values: number[];
|
|
190
193
|
items: number[];
|
|
191
194
|
limits: ControlLimits;
|
|
192
|
-
violations: ControlViolation[];
|
|
195
|
+
violations: ControlViolation[]; /** The colour group of each point, when the chart is coloured by a wafer field. */
|
|
196
|
+
group?: number[];
|
|
193
197
|
}
|
|
194
198
|
/**
|
|
195
199
|
* A heatmap: `values[r][c]` the combined value of the cell at row r and column c (NaN where it holds nothing),
|
|
@@ -261,8 +265,13 @@ export interface ResolvedPlot {
|
|
|
261
265
|
label: string;
|
|
262
266
|
unit?: string;
|
|
263
267
|
lo: number;
|
|
264
|
-
hi: number;
|
|
268
|
+
hi: number;
|
|
269
|
+
/** Every value is a whole number (a count): shown without decimals. */
|
|
265
270
|
integer?: true;
|
|
271
|
+
/** The values are rescaled around zero (a z-score): `lo` and `hi` are equally far from it, and the key runs below average to above. */
|
|
272
|
+
diverging?: true;
|
|
273
|
+
/** The values are a rating (a yield, a pass rate): the key runs from bad to good, not from low to high. */
|
|
274
|
+
rating?: true;
|
|
266
275
|
};
|
|
267
276
|
colorLabel?: string;
|
|
268
277
|
/** Set when the colour is a hard or soft bin: each group takes that bin's colour on the maps (`BinColors`). */
|