{"id":6739,"date":"2026-08-08T19:28:39","date_gmt":"2026-08-09T00:28:39","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/?p=6739"},"modified":"2026-11-26T22:38:58","modified_gmt":"2026-11-27T04:38:58","slug":"semiconductor-machine-signal-parameterization-for-ml-modeling-quantized-signals","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/semiconductor-machine-signal-parameterization-for-ml-modeling-quantized-signals-6739\/","title":{"rendered":"Semiconductor Machine Signal Parameterization for ML Modeling: Quantized Signals"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/yBarn1\/Images\/main\/street-signs\/prairie-crossroads-stop-sign.jpg\" alt=\"\" style=\"width:auto;height:500px\"\/><\/figure>\n\n\n<p><div class=\"github-readme-container markdown-body\"><div id=\"file\" class=\"md\" data-path=\"EDA\/semiconductor-machine-signal-parameterization-quantized.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Semiconductor Machine Signal Parameterization for ML Modeling: Quantized Signals<\/h1><a id=\"user-content-semiconductor-machine-signal-parameterization-for-ml-modeling-quantized-signals\" class=\"anchor\" aria-label=\"Permalink: Semiconductor Machine Signal Parameterization for ML Modeling: Quantized Signals\" href=\"#semiconductor-machine-signal-parameterization-for-ml-modeling-quantized-signals\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Version 7 | Created: 2026-08-01 | Updated: 2026-11-07 13:46 UTC<\/p>\n<ul dir=\"auto\">\n<li><a href=\"#1-scope-and-framing\">1. Scope And Framing<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#11-when-this-document-applies\">1.1 When This Document Applies<\/a><\/li>\n<li><a href=\"#12-the-two-requirements-in-tension\">1.2 The Two Requirements In Tension<\/a><\/li>\n<li><a href=\"#13-output-contract\">1.3 Output Contract<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#2-the-index-domain\">2. The Index Domain<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#21-why-the-level-count-must-not-enter-the-dimension\">2.1 Why The Level Count Must Not Enter The Dimension<\/a><\/li>\n<li><a href=\"#22-the-parameter-count-result\">2.2 The Parameter Count Result<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#3-ladder-identification\">3. Ladder Identification<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#31-recovering-the-pitch\">3.1 Recovering The Pitch<\/a><\/li>\n<li><a href=\"#32-recovering-the-level-count\">3.2 Recovering The Level Count<\/a><\/li>\n<li><a href=\"#33-non-uniform-ladders\">3.3 Non-Uniform Ladders<\/a><\/li>\n<li><a href=\"#34-locating-the-transitions\">3.4 Locating The Transitions<\/a><\/li>\n<li><a href=\"#35-selection-guide\">3.5 Selection Guide<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#4-the-minimal-parameter-set\">4. The Minimal Parameter Set<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#41-block-b-the-descriptor-summary\">4.1 Block B, The Descriptor Summary<\/a><\/li>\n<li><a href=\"#42-the-core-five\">4.2 The Core Five<\/a><\/li>\n<li><a href=\"#43-block-a-the-reconstruction-payload\">4.3 Block A, The Reconstruction Payload<\/a><\/li>\n<li><a href=\"#44-summary-format\">4.4 Summary Format<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#5-reconstruction-tiers\">5. Reconstruction Tiers<\/a><\/li>\n<li><a href=\"#6-feature-table-rules\">6. Feature-Table Rules<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#61-parameters-that-carry-hidden-configuration\">6.1 Parameters That Carry Hidden Configuration<\/a><\/li>\n<li><a href=\"#62-naming-and-units\">6.2 Naming And Units<\/a><\/li>\n<li><a href=\"#63-redundancy-among-parameters\">6.3 Redundancy Among Parameters<\/a><\/li>\n<li><a href=\"#64-failure-modes\">6.4 Failure Modes<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#7-industry-practice-by-field\">7. Industry Practice By Field<\/a><\/li>\n<li><a href=\"#appendix-a-terminology\">Appendix A. Terminology<\/a><\/li>\n<\/ul>\n<blockquote>\n<p dir=\"auto\">A quantized signal does not vary continuously. It rests on a ladder of discrete levels and jumps between them, and the number of levels is usually not known in advance.\nThis document defines the parameter row for that case, built so that the row width never depends on the level count and so that the original waveform can be rebuilt from what the row stores.<\/p>\n<\/blockquote>\n<p dir=\"auto\"><a href=\"https:\/\/github.com\/ykim2718\/AIML\/blob\/main\/EDA\/semiconductor-machine-signal-parameterization-continuous.md\">semiconductor-machine-signal-parameterization-continuous.md<\/a> reduces a continuous waveform to a fixed-width row of scalars. A quantized signal breaks the assumptions behind that reduction. Its amplitude distribution is a set of spikes rather than a density, its derivative is zero almost everywhere and enormous at a handful of instants, and its natural description is a list of levels and dwell times whose length changes from record to record. Applying the continuous parameter set to it does not fail loudly. It produces values such as RMS and spectral centroid that are computable, stable, and blind to the only structure the signal actually has.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">1. Scope And Framing<\/h2><a id=\"user-content-1-scope-and-framing\" class=\"anchor\" aria-label=\"Permalink: 1. Scope And Framing\" href=\"#1-scope-and-framing\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">1.1 When This Document Applies<\/h3><a id=\"user-content-11-when-this-document-applies\" class=\"anchor\" aria-label=\"Permalink: 1.1 When This Document Applies\" href=\"#11-when-this-document-applies\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">A signal belongs here when its samples cluster onto a small set of distinct values and spend most of their time sitting on one of them. The cause does not matter. A converter quantizing an analog rail, a controller stepping a setpoint through a recipe, a valve moving between fixed apertures, and a state machine reporting its own mode all produce the same shape and take the same treatment.<\/p>\n<p dir=\"auto\">The formal test is the residual ratio of section 4.1. Fit the ladder, subtract it, and compare the leftover to the ladder pitch. When the leftover is far smaller than the pitch, the signal is quantized and this document applies. When it is comparable to the pitch, the ladder is an artifact of the fitting and the continuous treatment is the correct one.<\/p>\n<p dir=\"auto\">Table 1. Which document each signal belongs to<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Signal<\/th>\n<th>Governing question<\/th>\n<th>Correct document<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Small signal<\/td>\n<td>How much real variation exists above the noise floor<\/td>\n<td>semiconductor-machine-signal-parameterization-continuous.md, section 2<\/td>\n<\/tr>\n<tr>\n<td>Large signal<\/td>\n<td>How far the response departs from linear as amplitude grows<\/td>\n<td>semiconductor-machine-signal-parameterization-continuous.md, section 3<\/td>\n<\/tr>\n<tr>\n<td>Quantized signal<\/td>\n<td>Which levels it occupies, for how long, and in what order<\/td>\n<td>This document<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">A record may hold a quantized component and a continuous one at the same time, in which case the decomposition methods of section 5 of the companion document apply first and each component is then parameterized by its own rules.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">1.2 The Two Requirements In Tension<\/h3><a id=\"user-content-12-the-two-requirements-in-tension\" class=\"anchor\" aria-label=\"Permalink: 1.2 The Two Requirements In Tension\" href=\"#12-the-two-requirements-in-tension\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">This parameter row answers to two consumers at once, and they pull in opposite directions.<\/p>\n<ul dir=\"auto\">\n<li><strong>A fixed-width tabular row.<\/strong> Tree ensembles and regression models require every record to present the same columns in the same order. The level count <code>n<\/code> varies per record and is unknown before extraction, so nothing whose width is a function of <code>n<\/code> may appear.<\/li>\n<li><strong>Reconstruction.<\/strong> The stored parameters must be enough to rebuild the waveform, which rules out a summary that only reports averages.<\/li>\n<\/ul>\n<p dir=\"auto\">The tension is real and cannot be waved away, because a genuinely fixed-width vector cannot invert an arbitrarily long signal. It is resolved by separating the two jobs into two blocks of the same row and by stating explicitly, in section 5, what fidelity each width buys. The design principle is that fidelity is a declared budget rather than a promise.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">1.3 Output Contract<\/h3><a id=\"user-content-13-output-contract\" class=\"anchor\" aria-label=\"Permalink: 1.3 Output Contract\" href=\"#13-output-contract\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The artifact is one row of named scalars per analysis window, identical in form to the contract of the companion document. The window length, the hop, the ladder-estimation method, the transition budget <code>M<\/code>, and the residual threshold that admitted the record are all part of the artifact and must be recorded alongside it.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">2. The Index Domain<\/h2><a id=\"user-content-2-the-index-domain\" class=\"anchor\" aria-label=\"Permalink: 2. The Index Domain\" href=\"#2-the-index-domain\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">2.1 Why The Level Count Must Not Enter The Dimension<\/h3><a id=\"user-content-21-why-the-level-count-must-not-enter-the-dimension\" class=\"anchor\" aria-label=\"Permalink: 2.1 Why The Level Count Must Not Enter The Dimension\" href=\"#21-why-the-level-count-must-not-enter-the-dimension\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The obvious parameterization lists the level values and the time spent on each, which costs <code>2n<\/code> numbers. It is rejected outright. A column count that moves with <code>n<\/code> cannot form a table, records with different <code>n<\/code> cannot be compared, and column <code>level_7<\/code> means a different physical thing in every row.<\/p>\n<p dir=\"auto\">The resolution is to change domain before extracting anything. Estimate the ladder pitch <code>\u0394<\/code> and the anchor <code>b<\/code>, then map every sample to its level index.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"k(t) = round( ( x(t) \u2212 b ) \/ \u0394 )        k(t) \u2208 \u2124\"><pre lang=\"text\" class=\"notranslate\"><code>k(t) = round( ( x(t) \u2212 b ) \/ \u0394 )        k(t) \u2208 \u2124\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><code>k(t)<\/code> is integer, dimensionless, and measured in units of one level. Every parameter computed on <code>k(t)<\/code> therefore carries the same meaning whether the record had four levels or four hundred. <strong>The level count is demoted from a dimension of the vector to a value inside it.<\/strong><\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">2.2 The Parameter Count Result<\/h3><a id=\"user-content-22-the-parameter-count-result\" class=\"anchor\" aria-label=\"Permalink: 2.2 The Parameter Count Result\" href=\"#22-the-parameter-count-result\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Once the signal is in the index domain it is piecewise constant, so it is fully described by where it starts and by the transitions that follow. Write <code>S<\/code> for the number of transitions in the window and <code>T<\/code> for the window length in samples.<\/p>\n<p dir=\"auto\">Table 2. Components of an exact representation<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Component<\/th>\n<th>Count<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ladder pitch <code>\u0394<\/code> and anchor <code>b<\/code><\/td>\n<td>2<\/td>\n<td>Restores physical units<\/td>\n<\/tr>\n<tr>\n<td>Starting index <code>k\u2080<\/code><\/td>\n<td>1<\/td>\n<td>Fixes the absolute position on the ladder<\/td>\n<\/tr>\n<tr>\n<td>Jumps <code>d\u2081 \u2026 d_S<\/code>, where <code>d_i = k_i \u2212 k_{i\u22121}<\/code><\/td>\n<td><code>S<\/code><\/td>\n<td>Each is a signed integer count of levels<\/td>\n<\/tr>\n<tr>\n<td>Run lengths <code>L\u2080 \u2026 L_S<\/code><\/td>\n<td><code>S<\/code><\/td>\n<td>One is redundant because the run lengths sum to the known <code>T<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Exact reconstruction therefore costs<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"2S + 3     numbers\"><pre lang=\"text\" class=\"notranslate\"><code>2S + 3     numbers\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><strong>This is the central result. The parameter count scales with <code>S<\/code>, the number of transitions, and not with <code>n<\/code>, the number of levels.<\/strong> The level count enters only as precision, since an index needs <code>\u2308log\u2082 n\u2309<\/code> bits to store, never as an extra parameter. A record that visits four hundred levels twice is cheaper to represent exactly than one that oscillates between two levels a thousand times.<\/p>\n<p dir=\"auto\">That reframes the original question. Asking how to parameterize a signal whose level count is unknown is asking the wrong quantity to be small. The quantity to budget is the transition count, and section 5 budgets it.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">3. Ladder Identification<\/h2><a id=\"user-content-3-ladder-identification\" class=\"anchor\" aria-label=\"Permalink: 3. Ladder Identification\" href=\"#3-ladder-identification\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Everything above assumes <code>\u0394<\/code>, <code>b<\/code>, and <code>n\u0302<\/code> are already known. They are not, and recovering them is the one genuinely hard step. The methods below are ordered so that a method further down is adopted only after the one above it has been tried and shown to fail, since each step down costs more to tune and more to defend.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.1 Recovering The Pitch<\/h3><a id=\"user-content-31-recovering-the-pitch\" class=\"anchor\" aria-label=\"Permalink: 3.1 Recovering The Pitch\" href=\"#31-recovering-the-pitch\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Table 3. Methods for recovering the pitch<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Procedure<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Difference histogram<\/td>\n<td>Take the first difference, discard the zeros, and read the mode of the remaining magnitudes<\/td>\n<td>It is one pass and it is the correct first attempt, since in a clean record most transitions are a single level<\/td>\n<\/tr>\n<tr>\n<td>Lattice-span estimation<\/td>\n<td>Scan a candidate pitch <code>\u03b4<\/code> and evaluate the magnitude of the mean of <code>exp(j2\u03c0x\/\u03b4)<\/code>, which peaks when <code>\u03b4<\/code> matches the true pitch<\/td>\n<td>It is the rigorous version of the above, it survives noise that smears the difference histogram, and it must be guarded against the harmonic peaks at integer divisors of <code>\u0394<\/code><\/td>\n<\/tr>\n<tr>\n<td>Amplitude-histogram peak spacing<\/td>\n<td>Build a kernel density estimate of the amplitude, pick peaks by prominence, and take the median spacing between adjacent peaks<\/td>\n<td>It reports the level positions as well as the pitch, so it feeds section 3.3 directly<\/td>\n<\/tr>\n<tr>\n<td>Code density test<\/td>\n<td>Drive the channel with a known full-scale ramp or sine, histogram the resulting codes, and derive the pitch alongside DNL and INL<\/td>\n<td>It is the instrumentation industry standard, laid down in IEEE Std 1241, and it is the only method here that is traceable, but it requires a controlled excitation<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.2 Recovering The Level Count<\/h3><a id=\"user-content-32-recovering-the-level-count\" class=\"anchor\" aria-label=\"Permalink: 3.2 Recovering The Level Count\" href=\"#32-recovering-the-level-count\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The pitch alone gives a candidate count as <code>n\u0302 = round((max k \u2212 min k)) + 1<\/code>, which is the occupied span. That number is correct only when the record actually visits every level in its span, so it is an upper bound and must be checked against a method that counts occupied levels directly.<\/p>\n<p dir=\"auto\">Table 4. Methods for recovering the level count<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Procedure<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Occupancy threshold<\/td>\n<td>Count the levels holding more than a stated fraction of the samples<\/td>\n<td>It is trivial, and its threshold is exactly the hidden configuration that section 6.1 requires be recorded<\/td>\n<\/tr>\n<tr>\n<td>Optimal one-dimensional clustering<\/td>\n<td>Partition the amplitudes with a dynamic program that is globally optimal in one dimension, then select the cluster count by BIC<\/td>\n<td>The <code>Ckmeans.1d.dp<\/code> formulation runs in <code>O(kT)<\/code> and, unlike ordinary k-means, has no initialization to get unlucky with, which makes it the recommended default<\/td>\n<\/tr>\n<tr>\n<td>Gaussian mixture with BIC<\/td>\n<td>Fit mixtures over a range of component counts and take the BIC minimum<\/td>\n<td>It is the familiar version of the row above and it is worse here, because a one-dimensional problem does not need an EM that can converge to a local optimum<\/td>\n<\/tr>\n<tr>\n<td>Hidden Markov model<\/td>\n<td>Fit an HMM whose states are the levels, which uses the time ordering rather than the amplitude histogram alone<\/td>\n<td>It separates two levels that overlap in amplitude but differ in what they transition to, which no histogram method can do<\/td>\n<\/tr>\n<tr>\n<td>Sticky HDP-HMM<\/td>\n<td>Fit a Bayesian nonparametric HMM in which the state count is part of the posterior rather than a setting<\/td>\n<td>It is the principled answer when <code>n<\/code> must be genuinely inferred, and the variational HMM tools of single-molecule biophysics are the field-proven form of exactly this problem<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">The HMM family is the honest answer to an unknown level count and it is also the expensive one. Reach for it when levels overlap in amplitude, when dwell times matter as much as level values, or when the count itself is a reported quantity. Use the clustering row above it otherwise.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.3 Non-Uniform Ladders<\/h3><a id=\"user-content-33-non-uniform-ladders\" class=\"anchor\" aria-label=\"Permalink: 3.3 Non-Uniform Ladders\" href=\"#33-non-uniform-ladders\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">A real ladder is rarely perfectly even, and the temptation is to abandon the pitch and store the <code>n\u0302<\/code> measured level values instead. That reintroduces the <code>O(n)<\/code> width that section 2.1 rejected.<\/p>\n<p dir=\"auto\">Store the deviation as a curve instead of as a list. Regress the measured level value against its index and keep the low-order coefficients, which is the same construction as integral non-linearity in converter characterization.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"value(k) \u2248 b + \u0394\u00b7k + c\u2082\u00b7k\u00b2\n\nb   anchor          the ladder position\n\u0394   pitch           the ladder spacing\nc\u2082  curvature       the ladder bow, one number in place of n\"><pre lang=\"text\" class=\"notranslate\"><code>value(k) \u2248 b + \u0394\u00b7k + c\u2082\u00b7k\u00b2\n\nb   anchor          the ladder position\n\u0394   pitch           the ladder spacing\nc\u2082  curvature       the ladder bow, one number in place of n\n<\/code><\/pre><\/div>\n<p dir=\"auto\">One extra parameter absorbs a smoothly bowed ladder. A ladder whose deviations are not smooth is not a bowed ladder but a set of unrelated levels, and that case belongs to the HMM row of section 3.2, where the levels are states with no ordering assumption at all.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.4 Locating The Transitions<\/h3><a id=\"user-content-34-locating-the-transitions\" class=\"anchor\" aria-label=\"Permalink: 3.4 Locating The Transitions\" href=\"#34-locating-the-transitions\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The pitch tells us the ladder, not where the signal moved on it. Rounding noisy samples straight to indices produces chatter at every level boundary, which inflates <code>S<\/code> without limit and destroys the count result of section 2.2. Segment first, then round the segment means.<\/p>\n<p dir=\"auto\">Table 5. Methods for locating the transitions<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Procedure<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Total variation denoising<\/td>\n<td>Minimize the fit error plus a penalty on the summed absolute differences, which drives the solution to be exactly piecewise constant<\/td>\n<td>It is the canonical pre-filter for this signal shape, and the direct algorithms run in near-linear time with a single regularization knob<\/td>\n<\/tr>\n<tr>\n<td>PELT<\/td>\n<td>Detect change points exactly under an additive cost with a pruning rule that keeps the search linear in the window length<\/td>\n<td>It is the industry default for piecewise-constant segmentation and it returns the breakpoints themselves rather than a denoised trace<\/td>\n<\/tr>\n<tr>\n<td>Kalafut\u2013Visscher<\/td>\n<td>Add steps one at a time and stop when an information criterion stops improving<\/td>\n<td>It is the well-known parameter-free step finder, which makes it the right choice when no threshold can be justified<\/td>\n<\/tr>\n<tr>\n<td>Median or Chung\u2013Kennedy filter<\/td>\n<td>Filter with a window that preserves edges instead of averaging across them<\/td>\n<td>It is the cheap pre-clean, and a plain moving average must never be used here because it turns every step into a ramp<\/td>\n<\/tr>\n<tr>\n<td>Hysteresis on the index<\/td>\n<td>Require the index to move by more than one level, or to hold a new level for a stated minimum, before a transition is recorded<\/td>\n<td>It is the crudest de-chatter and its two settings are hidden configuration that must be recorded<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">The repository holds naive forms of this stage under <code>Models\/Regression\/Step-Like\/<\/code>, in particular the recursive-partitioning and decision-tree segmentation scripts. They are useful for seeing the mechanism and they are not a substitute for the methods above, which have guarantees the scripts do not.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.5 Selection Guide<\/h3><a id=\"user-content-35-selection-guide\" class=\"anchor\" aria-label=\"Permalink: 3.5 Selection Guide\" href=\"#35-selection-guide\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"Is the ladder ...\n\n\u251c\u2500\u2500 even, and the record steps one level at a time    -&gt; difference histogram        [3.1]\n\u251c\u2500\u2500 even, but the record is noisy or jumps far        -&gt; lattice-span estimation     [3.1]\n\u251c\u2500\u2500 even, and a controlled excitation is available    -&gt; code density, IEEE 1241     [3.1]\n\u251c\u2500\u2500 uneven but smoothly bowed                         -&gt; add the curvature term      [3.3]\n\u251c\u2500\u2500 uneven, with levels overlapping in amplitude      -&gt; HMM on the levels           [3.2]\n\u2514\u2500\u2500 unknown in count, and the count is a deliverable  -&gt; sticky HDP-HMM              [3.2]\n\nThen, in every case, segment the time axis before rounding      -&gt; TV denoising or PELT   [3.4]\"><pre lang=\"text\" class=\"notranslate\"><code>Is the ladder ...\n\n\u251c\u2500\u2500 even, and the record steps one level at a time    -&gt; difference histogram        &#91;3.1&#93;\n\u251c\u2500\u2500 even, but the record is noisy or jumps far        -&gt; lattice-span estimation     &#91;3.1&#93;\n\u251c\u2500\u2500 even, and a controlled excitation is available    -&gt; code density, IEEE 1241     &#91;3.1&#93;\n\u251c\u2500\u2500 uneven but smoothly bowed                         -&gt; add the curvature term      &#91;3.3&#93;\n\u251c\u2500\u2500 uneven, with levels overlapping in amplitude      -&gt; HMM on the levels           &#91;3.2&#93;\n\u2514\u2500\u2500 unknown in count, and the count is a deliverable  -&gt; sticky HDP-HMM              &#91;3.2&#93;\n\nThen, in every case, segment the time axis before rounding      -&gt; TV denoising or PELT   &#91;3.4&#93;\n<\/code><\/pre><\/div>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. The Minimal Parameter Set<\/h2><a id=\"user-content-4-the-minimal-parameter-set\" class=\"anchor\" aria-label=\"Permalink: 4. The Minimal Parameter Set\" href=\"#4-the-minimal-parameter-set\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The row has two blocks. Block B is the descriptor summary that the model consumes, and Block A is the reconstruction payload that makes the row invertible. They share the ladder parameters, so the blocks are listed once and counted once.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.1 Block B, The Descriptor Summary<\/h3><a id=\"user-content-41-block-b-the-descriptor-summary\" class=\"anchor\" aria-label=\"Permalink: 4.1 Block B, The Descriptor Summary\" href=\"#41-block-b-the-descriptor-summary\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Eleven columns, none of which change width with <code>n<\/code> or with <code>S<\/code>.<\/p>\n<p dir=\"auto\">Table 6. Block B, the descriptor columns<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Group<\/th>\n<th>Parameter<\/th>\n<th>Definition<\/th>\n<th>Interpretation<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ladder<\/td>\n<td><code>q_lsb<\/code><\/td>\n<td>The ladder pitch <code>\u0394<\/code>, in physical units per level<\/td>\n<td>It is the resolution of the signal and it sets the unit every other parameter is expressed in<\/td>\n<\/tr>\n<tr>\n<td>Ladder<\/td>\n<td><code>q_anchor<\/code><\/td>\n<td>The ladder anchor <code>b<\/code>, the physical value at index zero<\/td>\n<td>It is the absolute position of the ladder, and it is what makes two records comparable in physical units<\/td>\n<\/tr>\n<tr>\n<td>Ladder<\/td>\n<td><code>q_inl_c2<\/code><\/td>\n<td>The quadratic coefficient of level value against index<\/td>\n<td>It carries a bowed ladder in one number instead of a list of <code>n\u0302<\/code> level values<\/td>\n<\/tr>\n<tr>\n<td>Occupancy<\/td>\n<td><code>q_nlev<\/code><\/td>\n<td>The estimated occupied level count <code>n\u0302<\/code><\/td>\n<td>It is the level count itself, present as a value rather than as a dimension<\/td>\n<\/tr>\n<tr>\n<td>Occupancy<\/td>\n<td><code>q_occ_entropy<\/code><\/td>\n<td>The entropy of the level-occupancy distribution divided by <code>log n\u0302<\/code><\/td>\n<td>It is how evenly the record spread itself over the levels it visited, on a zero-to-one scale that does not move with <code>n\u0302<\/code><\/td>\n<\/tr>\n<tr>\n<td>Occupancy<\/td>\n<td><code>q_occ_mode_frac<\/code><\/td>\n<td>The fraction of samples resting on the single most-occupied level<\/td>\n<td>It separates a signal parked on one level from a signal roaming across many<\/td>\n<\/tr>\n<tr>\n<td>Dynamics<\/td>\n<td><code>q_trans_rate<\/code><\/td>\n<td>Transitions per second<\/td>\n<td>It is how often the signal moved<\/td>\n<\/tr>\n<tr>\n<td>Dynamics<\/td>\n<td><code>q_jump_rms_lsb<\/code><\/td>\n<td>The root mean square of the jump magnitudes, in levels<\/td>\n<td>It is how far each move went, and a value near one means the signal steps rather than leaps<\/td>\n<\/tr>\n<tr>\n<td>Dynamics<\/td>\n<td><code>q_dwell_cv<\/code><\/td>\n<td>The coefficient of variation of the dwell times<\/td>\n<td>It separates regular clocking, where the value is near zero, from bursty dwelling, where it exceeds one<\/td>\n<\/tr>\n<tr>\n<td>Dynamics<\/td>\n<td><code>q_net_drift_lsb<\/code><\/td>\n<td>The end index minus the start index, in levels<\/td>\n<td>It is the net directional walk across the window, which a symmetric jump statistic cannot show<\/td>\n<\/tr>\n<tr>\n<td>Fidelity<\/td>\n<td><code>q_resid_ratio<\/code><\/td>\n<td>The root mean square of the on-level residual divided by <code>\u0394<\/code><\/td>\n<td>It is the validity gate of the entire row, since a value that is not far below one means the signal was never quantized and every parameter above it is an artifact<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.2 The Core Five<\/h3><a id=\"user-content-42-the-core-five\" class=\"anchor\" aria-label=\"Permalink: 4.2 The Core Five\" href=\"#42-the-core-five\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">When the column budget is tight, five of the eleven carry the structure and the rest refine it.<\/p>\n<p dir=\"auto\">Table 7. The core five columns<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Why it cannot be dropped<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>q_lsb<\/code><\/td>\n<td>Without the pitch there is no index domain and nothing else has a unit<\/td>\n<\/tr>\n<tr>\n<td><code>q_anchor<\/code><\/td>\n<td>Without the anchor the ladder floats and records cannot be compared<\/td>\n<\/tr>\n<tr>\n<td><code>q_nlev<\/code><\/td>\n<td>It is the answer to how many levels, which is the question the record was opened to ask<\/td>\n<\/tr>\n<tr>\n<td><code>q_occ_entropy<\/code><\/td>\n<td>It is the only column that describes the distribution across levels rather than their extent<\/td>\n<\/tr>\n<tr>\n<td><code>q_trans_rate<\/code><\/td>\n<td>It is the only column that uses the time ordering, without which the record is a histogram<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\"><code>q_resid_ratio<\/code> is not in the core five because it is not a feature. It is an admission test, and a record failing it is routed to the continuous treatment rather than scored with a lower value.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.3 Block A, The Reconstruction Payload<\/h3><a id=\"user-content-43-block-a-the-reconstruction-payload\" class=\"anchor\" aria-label=\"Permalink: 4.3 Block A, The Reconstruction Payload\" href=\"#43-block-a-the-reconstruction-payload\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Block A stores the starting index and a fixed budget of <code>M<\/code> transitions, which is Adaptive Piecewise Constant Approximation carried out in the index domain.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"k\u2080                                    1 column\n(d\u2081, L\u2081) \u2026 (d_M, L_M)                2M columns\n                                    \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n                                     1 + 2M columns, on top of Block B's 11\"><pre lang=\"text\" class=\"notranslate\"><code>k\u2080                                    1 column\n(d\u2081, L\u2081) \u2026 (d_M, L_M)                2M columns\n                                    \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n                                     1 + 2M columns, on top of Block B's 11\n<\/code><\/pre><\/div>\n<p dir=\"auto\">Total row width is therefore <code>12 + 2M<\/code>, and it is identical for every record in the table.<\/p>\n<p dir=\"auto\">Four rules govern the budget.<\/p>\n<ul dir=\"auto\">\n<li><strong><code>M<\/code> is fixed once for the whole dataset, not per record.<\/strong> Setting it per record reintroduces a variable width. Choose it from the distribution of <code>S<\/code> across the dataset, at roughly the ninety-fifth percentile, so that most records are stored exactly and the tail is truncated.<\/li>\n<li><strong>Keep the <code>M<\/code> largest jumps by magnitude, not the first <code>M<\/code> in time.<\/strong> Truncation should discard the least of the signal, and the largest transitions dominate the reconstruction error.<\/li>\n<li><strong>Records with fewer than <code>M<\/code> transitions are padded with null, never with zero.<\/strong> A zero jump is a real and meaningful value, being a transition that did not move, so padding with zero fabricates events. This is the rule of section 6.4 of the companion document applied to this table.<\/li>\n<li><strong>Report the truncation.<\/strong> Store <code>q_nlev<\/code>'s companion <code>S<\/code> alongside the row so that a reader can see which records were truncated, because a table that silently drops transitions reads as one that captured everything.<\/li>\n<\/ul>\n<p dir=\"auto\">Block A is close to inert for a tree ensemble, which cannot make much of column <code>d_7<\/code>. That is expected and is not a reason to drop it. Its job is invertibility, and Block B is the block the model learns from.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.4 Summary Format<\/h3><a id=\"user-content-44-summary-format\" class=\"anchor\" aria-label=\"Permalink: 4.4 Summary Format\" href=\"#44-summary-format\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"[Quantized Signal Data Summary]\n\nBlock B, 11 columns\n1. Ladder        : LSB (mV), Anchor (mV), INL c2 (mV\/level^2)\n2. Occupancy     : Levels (-), Norm entropy (-), Mode fraction (%)\n3. Dynamics      : Transition rate (1\/s), Jump RMS (levels), Dwell CV (-), Net drift (levels)\n4. Fidelity      : Residual ratio (-)\n\nBlock A, 1 + 2M columns\n5. Payload       : k0 (levels), (d_i, L_i) for i = 1 .. M\n\nRecorded alongside, not features\n6. Extraction    : Window (s), Hop (s), LSB estimator, Segmenter, Budget M (-),\n                   Transitions S (-), Residual admission threshold (-)\"><pre lang=\"text\" class=\"notranslate\"><code>&#91;Quantized Signal Data Summary&#93;\n\nBlock B, 11 columns\n1. Ladder        : LSB (mV), Anchor (mV), INL c2 (mV\/level^2)\n2. Occupancy     : Levels (-), Norm entropy (-), Mode fraction (%)\n3. Dynamics      : Transition rate (1\/s), Jump RMS (levels), Dwell CV (-), Net drift (levels)\n4. Fidelity      : Residual ratio (-)\n\nBlock A, 1 + 2M columns\n5. Payload       : k0 (levels), (d_i, L_i) for i = 1 .. M\n\nRecorded alongside, not features\n6. Extraction    : Window (s), Hop (s), LSB estimator, Segmenter, Budget M (-),\n                   Transitions S (-), Residual admission threshold (-)\n<\/code><\/pre><\/div>\n<p dir=\"auto\">The extraction block is configuration rather than signal, so it does not enter the model. It must still travel with the table, because section 6.1 shows that every column above is undefined without it.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">5. Reconstruction Tiers<\/h2><a id=\"user-content-5-reconstruction-tiers\" class=\"anchor\" aria-label=\"Permalink: 5. Reconstruction Tiers\" href=\"#5-reconstruction-tiers\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Each width buys a different guarantee. Declaring which tier a table was built to is part of the artifact, because \"reconstructible\" without a tier is not a claim that can be checked.<\/p>\n<p dir=\"auto\">Table 8. Reconstruction tiers<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Tier<\/th>\n<th>Width<\/th>\n<th>What is recovered<\/th>\n<th>Cost<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>R0<\/td>\n<td>3<\/td>\n<td>The quantizer ladder, meaning the pitch, the anchor, and the curvature that place every level, but nothing about the signal on it<\/td>\n<td>Three columns<\/td>\n<\/tr>\n<tr>\n<td>R1<\/td>\n<td><code>3 + K<\/code><\/td>\n<td>The amplitude histogram over <code>K<\/code> fixed quantiles, so the signal up to an arbitrary permutation of time<\/td>\n<td>Fixed and small<\/td>\n<\/tr>\n<tr>\n<td>R2<\/td>\n<td>12<\/td>\n<td>A statistically equivalent surrogate, drawable by semi-Markov sampling from the dwell and jump statistics, matching the original in distribution but not sample by sample<\/td>\n<td>Block B plus <code>k\u2080<\/code><\/td>\n<\/tr>\n<tr>\n<td>R3<\/td>\n<td><code>12 + 2M<\/code><\/td>\n<td>The waveform with bounded error, exact wherever <code>S \u2264 M<\/code> and missing only the smallest transitions elsewhere<\/td>\n<td>Fixed, tunable through <code>M<\/code><\/td>\n<\/tr>\n<tr>\n<td>R4<\/td>\n<td><code>2S + 3<\/code><\/td>\n<td>The waveform sample by sample<\/td>\n<td>Variable width, so it is a per-record record and not a table column set<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\"><strong>R3 is the recommendation.<\/strong> It is the widest tier that is still a fixed-width table, its error falls monotonically as <code>M<\/code> rises, and it degrades to R4 exactly when <code>M<\/code> reaches the largest <code>S<\/code> in the dataset. R4 is the information-theoretic floor for exact reconstruction and is stored as a side artifact keyed to the row when sample-exact replay is genuinely needed.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">6. Feature-Table Rules<\/h2><a id=\"user-content-6-feature-table-rules\" class=\"anchor\" aria-label=\"Permalink: 6. Feature-Table Rules\" href=\"#6-feature-table-rules\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Sections 6.1 through 6.6 of <a href=\"https:\/\/github.com\/ykim2718\/AIML\/blob\/main\/EDA\/semiconductor-machine-signal-parameterization-continuous.md\">semiconductor-machine-signal-parameterization-continuous.md<\/a> govern this table too, covering window definition, leakage, normalization across machines, and the treatment of undefined values. Only the additions specific to a quantized signal are stated here.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">6.1 Parameters That Carry Hidden Configuration<\/h3><a id=\"user-content-61-parameters-that-carry-hidden-configuration\" class=\"anchor\" aria-label=\"Permalink: 6.1 Parameters That Carry Hidden Configuration\" href=\"#61-parameters-that-carry-hidden-configuration\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Table 9. Parameters that carry hidden configuration<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Hidden configuration<\/th>\n<th>Consequence if unrecorded<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>q_lsb<\/code><\/td>\n<td>Which estimator of section 3.1 produced it<\/td>\n<td>Two extractions can differ by an integer factor, since a lattice scan can lock onto a divisor of the true pitch<\/td>\n<\/tr>\n<tr>\n<td><code>q_nlev<\/code><\/td>\n<td>The occupancy threshold or the model-selection criterion<\/td>\n<td>The count is not a property of the signal alone and is not comparable across extractions<\/td>\n<\/tr>\n<tr>\n<td><code>q_trans_rate<\/code><\/td>\n<td>The segmentation method and any hysteresis or minimum-dwell setting<\/td>\n<td>Chatter at a level boundary inflates the rate without bound, so two settings give unrelated numbers<\/td>\n<\/tr>\n<tr>\n<td><code>q_resid_ratio<\/code><\/td>\n<td>The threshold at which a record is admitted as quantized<\/td>\n<td>The population the table describes is undefined<\/td>\n<\/tr>\n<tr>\n<td>Block A<\/td>\n<td>The budget <code>M<\/code> and the keep-largest rule<\/td>\n<td>A truncated row is indistinguishable from a complete one<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">6.2 Naming And Units<\/h3><a id=\"user-content-62-naming-and-units\" class=\"anchor\" aria-label=\"Permalink: 6.2 Naming And Units\" href=\"#62-naming-and-units\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The companion document's scheme <code>&lt;channel&gt;_&lt;domain&gt;_&lt;parameter&gt;_&lt;unit&gt;<\/code> carries over with <code>qd<\/code> as the domain tag, alongside the existing <code>td<\/code> and <code>fd<\/code>. A column is therefore <code>rf_fwd_qd_lsb_mV<\/code> or <code>chamber_pr_qd_entropy_ratio<\/code>. Parameters measured in levels take <code>lsb<\/code> as their unit, and this must be written out, because a jump of three is three levels and not three millivolts.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">6.3 Redundancy Among Parameters<\/h3><a id=\"user-content-63-redundancy-among-parameters\" class=\"anchor\" aria-label=\"Permalink: 6.3 Redundancy Among Parameters\" href=\"#63-redundancy-among-parameters\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Several columns are algebraically linked and will appear as near-perfect collinearity, exactly as in section 6.5 of the companion document.<\/p>\n<ul dir=\"auto\">\n<li><code>q_nlev<\/code> is bounded by the index span, so it moves with the range of the payload.<\/li>\n<li><code>q_trans_rate<\/code> and the mean dwell time are reciprocal, so only one of the two is ever needed.<\/li>\n<li><code>q_occ_entropy<\/code> and <code>q_occ_mode_frac<\/code> both measure concentration and disagree only in the tail of the occupancy distribution.<\/li>\n<\/ul>\n<p dir=\"auto\">Tree ensembles tolerate this. Linear and distance-based models do not, so for those keep one column from each linked group.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">6.4 Failure Modes<\/h3><a id=\"user-content-64-failure-modes\" class=\"anchor\" aria-label=\"Permalink: 6.4 Failure Modes\" href=\"#64-failure-modes\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Table 10. Failure modes and their handling<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Situation<\/th>\n<th>Symptom<\/th>\n<th>Handling<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>The pitch estimate locks onto a divisor of the true pitch<\/td>\n<td><code>q_nlev<\/code> is an integer multiple of the truth and <code>q_jump_rms_lsb<\/code> is unusually large<\/td>\n<td>Cross-check the difference histogram against the lattice scan and prefer the larger candidate pitch that still explains the data<\/td>\n<\/tr>\n<tr>\n<td>The record never leaves one level<\/td>\n<td><code>q_trans_rate<\/code> is zero and the entropy and dwell statistics are undefined<\/td>\n<td>Write the undefined columns as null, never as zero, and keep the record, because a parked channel is a real and informative state<\/td>\n<\/tr>\n<tr>\n<td>The signal is not actually quantized<\/td>\n<td><code>q_resid_ratio<\/code> approaches or exceeds one<\/td>\n<td>Route the record to the continuous treatment rather than storing a quantized row that describes an imaginary ladder<\/td>\n<\/tr>\n<tr>\n<td>Chatter at a level boundary<\/td>\n<td><code>q_trans_rate<\/code> is enormous and <code>q_dwell_cv<\/code> collapses toward zero<\/td>\n<td>Return to section 3.4 and segment before rounding, rather than filtering the parameter afterward<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">7. Industry Practice By Field<\/h2><a id=\"user-content-7-industry-practice-by-field\" class=\"anchor\" aria-label=\"Permalink: 7. Industry Practice By Field\" href=\"#7-industry-practice-by-field\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The same signal shape is studied under different names in fields that arrived at their own standards, and each standard is the best available answer within its own constraints.<\/p>\n<p dir=\"auto\">Table 11. Industry practice by field<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Standard practice<\/th>\n<th>What it is best at<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Instrumentation and converter test<\/td>\n<td>Code density histogram test, DNL, INL, ENOB, under IEEE Std 1241<\/td>\n<td>Characterizing the ladder itself to a traceable standard, given a controlled excitation<\/td>\n<\/tr>\n<tr>\n<td>Single-molecule biophysics<\/td>\n<td>Variational and Bayesian nonparametric HMMs, and the Kalafut\u2013Visscher step finder<\/td>\n<td>Inferring the level count from the data when it is genuinely unknown, which is the closest match to the problem posed here<\/td>\n<\/tr>\n<tr>\n<td>Change-point statistics<\/td>\n<td>PELT, binary segmentation, and total variation denoising<\/td>\n<td>Locating transitions exactly and cheaply in a long record<\/td>\n<\/tr>\n<tr>\n<td>Time-series indexing and retrieval<\/td>\n<td>APCA, PAA, and SAX<\/td>\n<td>Fixed-width piecewise-constant representation with a tunable error bound, which is what Block A implements<\/td>\n<\/tr>\n<tr>\n<td>General time-series machine learning<\/td>\n<td>The <code>catch22<\/code> canonical feature set, and <code>tsfresh<\/code> for a wider sweep<\/td>\n<td>A domain-agnostic descriptor block when no domain-specific one is wanted<\/td>\n<\/tr>\n<tr>\n<td>Symbolic dynamics<\/td>\n<td>Lempel\u2013Ziv complexity and permutation entropy<\/td>\n<td>Single-number complexity measures on the index sequence that are invariant to the level count<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Learned quantization, meaning vector quantization, product quantization, and VQ-VAE codebooks, solves a related problem and is deliberately out of scope. Those methods learn a codebook across a corpus in order to compress many signals jointly, and they need far more data than a per-record parameterization has. They also produce a code whose dimensions have no physical meaning, which forfeits the auditability that every parameter above was chosen to keep. Reach for them only when the corpus is large, the reconstruction target is perceptual rather than metrological, and no one will need to explain an individual column.<\/p>\n<hr>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix A. Terminology<\/h2><a id=\"user-content-appendix-a-terminology\" class=\"anchor\" aria-label=\"Permalink: Appendix A. Terminology\" href=\"#appendix-a-terminology\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The terms below appear in the body without being defined there. They are listed in alphabetical order. Terms already defined in Appendix A of <a href=\"https:\/\/github.com\/ykim2718\/AIML\/blob\/main\/EDA\/semiconductor-machine-signal-parameterization-continuous.md\">semiconductor-machine-signal-parameterization-continuous.md<\/a> are not repeated.<\/p>\n<ul dir=\"auto\">\n<li><strong>Anchor<\/strong> is the physical value corresponding to level index zero, which fixes the absolute position of the ladder.<\/li>\n<li><strong>APCA<\/strong> is Adaptive Piecewise Constant Approximation, a representation that approximates a series by a fixed number of constant segments of variable length.<\/li>\n<li><strong>BIC<\/strong> is the Bayesian Information Criterion, a model-selection score that penalizes parameter count against likelihood.<\/li>\n<li><strong>catch22<\/strong> is a set of twenty-two canonical time-series features selected from a much larger library for classification performance.<\/li>\n<li><strong>Chung\u2013Kennedy filter<\/strong> is an edge-preserving filter that chooses between forward and backward averages, designed for stepped signals.<\/li>\n<li><strong>Code density test<\/strong> is the procedure of driving a converter with a known excitation and histogramming the output codes in order to characterize the ladder.<\/li>\n<li><strong>Coefficient of variation<\/strong> is the standard deviation divided by the mean, a dimensionless measure of spread.<\/li>\n<li><strong>DNL<\/strong> is Differential Non-Linearity, the deviation of an individual level spacing from the ideal pitch.<\/li>\n<li><strong>Dwell time<\/strong> is the duration for which the signal remains on one level before transitioning.<\/li>\n<li><strong>EM<\/strong> is Expectation-Maximization, the iterative algorithm used to fit mixture models, which converges to a local rather than a global optimum.<\/li>\n<li><strong>ENOB<\/strong> is the Effective Number Of Bits, the resolution a converter actually achieves once noise and distortion are counted.<\/li>\n<li><strong>HDP-HMM<\/strong> is a Hierarchical Dirichlet Process Hidden Markov Model, a Bayesian nonparametric model in which the number of states is inferred rather than set. The sticky variant adds a prior favoring self-transitions, which suppresses spurious rapid state switching.<\/li>\n<li><strong>HMM<\/strong> is a Hidden Markov Model, a model of a sequence of observations generated by an unobserved sequence of discrete states.<\/li>\n<li><strong>Index domain<\/strong> is the representation in which each sample is replaced by its integer level index, obtained by subtracting the anchor and dividing by the pitch.<\/li>\n<li><strong>INL<\/strong> is Integral Non-Linearity, the accumulated deviation of the measured ladder from a straight line.<\/li>\n<li><strong>Jump<\/strong> is the signed change in level index across a transition, measured in levels.<\/li>\n<li><strong>Kalafut\u2013Visscher<\/strong> is a step-detection method that adds steps greedily and stops on an information criterion, requiring no threshold.<\/li>\n<li><strong>Ladder<\/strong> is the set of discrete levels a quantized signal rests on.<\/li>\n<li><strong>Lattice-span estimation<\/strong> is the recovery of the spacing of a discrete-valued distribution from the peaks of its characteristic function.<\/li>\n<li><strong>Lempel\u2013Ziv complexity<\/strong> is a count of the distinct substrings needed to build a sequence, used as a compressibility-based complexity measure.<\/li>\n<li><strong>LSB<\/strong> is the Least Significant Bit, used here as the unit of one level of the ladder.<\/li>\n<li><strong>PAA<\/strong> is Piecewise Aggregate Approximation, which averages a series over fixed-length segments.<\/li>\n<li><strong>PELT<\/strong> is Pruned Exact Linear Time, a change-point detection algorithm that finds the exact optimum under an additive cost.<\/li>\n<li><strong>Permutation entropy<\/strong> is an entropy computed over the ordinal patterns of short subsequences.<\/li>\n<li><strong>Pitch<\/strong> is the spacing between adjacent levels of the ladder, written <code>\u0394<\/code> and also called the LSB.<\/li>\n<li><strong>Product quantization<\/strong> is a compression method that splits a vector into subvectors and quantizes each against its own codebook.<\/li>\n<li><strong>Residual ratio<\/strong> is the root mean square of the on-level residual divided by the pitch, used here as the test of whether a signal is quantized at all.<\/li>\n<li><strong>Run-length encoding<\/strong> is the representation of a piecewise-constant sequence as a list of value and duration pairs.<\/li>\n<li><strong>SAX<\/strong> is Symbolic Aggregate approXimation, which converts a series into a symbol string by binning PAA segments.<\/li>\n<li><strong>Semi-Markov process<\/strong> is a state process in which the next state follows a Markov chain but the time spent in each state is drawn from its own distribution, which is the model implied by storing jump and dwell statistics separately.<\/li>\n<li><strong>Total variation denoising<\/strong> is the recovery of a piecewise-constant estimate by penalizing the summed absolute differences of the solution.<\/li>\n<li><strong>tsfresh<\/strong> is a library that computes a large battery of time-series features and filters them by statistical significance.<\/li>\n<li><strong>VQ-VAE<\/strong> is a Vector Quantized Variational Autoencoder, a network that encodes inputs against a learned discrete codebook.<\/li>\n<\/ul>\n<\/article><\/div><\/div><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Semiconductor machine signals often jump between discrete levels instead of varying smoothly, and the level count is unknown. Continuous parameters like RMS silently miss that structure. This guide maps the waveform to level indices, so row width scales with transitions rather than levels \u2014 descriptors, reconstruction payload, and declared fidelity tiers.<\/p>\n","protected":false},"author":4,"featured_media":6746,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","fifu_image_url":"","fifu_image_alt":"","iawp_total_views":3,"footnotes":""},"categories":[384,18,56,4],"tags":[386],"class_list":["post-6739","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eda-slug","category-ai-powered-factory-slug","category-data-science-slug","category-semiconductor-slug","tag-github-hosted"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"jetpack_featured_media_url":"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2026\/08\/prairie-crossroads-stop-sign-1.jpg","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/6739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=6739"}],"version-history":[{"count":4,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/6739\/revisions"}],"predecessor-version":[{"id":7471,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/6739\/revisions\/7471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/6746"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=6739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=6739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=6739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}