Zum Inhalt
HALOWERK

Datenvertragswerk

window signed digit recoding audit

For an anonymous supplied integer(-2147483647..2147483647) and width2..8 reconstruct the entire canonical window nonadjacent signed binary expansion. Return little-endian signed digits, all nonzero positions/count and per-bit exact before/digit/after residuals. Nonzero digits are odd with abs(d)<2^(width-1), and any width consecutive positions contain at most one nonzero. Zero has empty arrays; signed extension explicit. Compare the complete claimed artifact by field names with ordered.

POST https://datenvertrag.halowerk.com/v1/window-signed-digit-recoding-audit

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
integerSiehe SchemaJa
widthSiehe SchemaJa
claimed_valueSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "integer": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -2147483647,
          "maximum": 2147483647
        },
        {
          "type": "null"
        }
      ]
    },
    "width": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 2,
          "maximum": 8
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_value": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "width": {
              "type": "integer",
              "minimum": 2,
              "maximum": 8
            },
            "digits_lsb": {
              "type": "array",
              "maxItems": 33,
              "items": {
                "type": "integer",
                "minimum": -127,
                "maximum": 127
              }
            },
            "nonzero_positions": {
              "type": "array",
              "maxItems": 33,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 32
              }
            },
            "nonzero_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 33
            },
            "trace": {
              "type": "array",
              "maxItems": 33,
              "items": {
                "type": "object",
                "properties": {
                  "bit": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 32
                  },
                  "before": {
                    "type": "integer",
                    "minimum": -2147483648,
                    "maximum": 2147483648
                  },
                  "digit": {
                    "type": "integer",
                    "minimum": -127,
                    "maximum": 127
                  },
                  "after": {
                    "type": "integer",
                    "minimum": -2147483648,
                    "maximum": 2147483648
                  }
                },
                "required": [
                  "bit",
                  "before",
                  "digit",
                  "after"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "width",
            "digits_lsb",
            "nonzero_positions",
            "nonzero_count",
            "trace"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "integer",
    "width",
    "claimed_value"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "integer": 15,
  "width": 5,
  "claimed_value": {
    "width": 5,
    "digits_lsb": [
      15
    ],
    "nonzero_positions": [
      0
    ],
    "nonzero_count": 1,
    "trace": [
      {
        "bit": 0,
        "before": 15,
        "digit": 15,
        "after": 0
      }
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →