{"uid":"cap_SQ_n1fIk53rotORvkZqR9","slug":"delx-weight-normalize-1ba7cc65","name":"Delx Weight Normalize","description":"Normalize non-negative weights so they sum to one when possible — call when normalizing non-negative ensemble weights to sum 1. Use on caller-supplied ticks/returns when agents need signal prep without a licensed live market feed (ottoai-class demand, first-party transform). Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web s…","url":"https://api.delx.ai/api/v1/x402/weight-normalize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"weights":{"type":"array","description":"Non-negative weights to normalize so they sum to 1 when possible."}}},"responseSchema":{"type":"json","example":{"sum":4,"count":3,"valid":true,"schema":"delx/util-weight-normalize/v1","normalized":[0.25,0.5,0.25]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8XbgYI8lpI2HEpdeBH4vw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes an array of non-negative weights so they sum to 1.0, returning a probability simplex representation suitable for ensemble models and signal preparation.","exampleAgentPrompt":"I have these raw ensemble weights [0.5, 1.5, 3.0] — can you normalize them so they all sum to 1?","exampleUseCases":[{"title":"Ensemble model blending prep","prompt":"I have four model confidence scores — 0.2, 0.8, 1.0, and 0.5 — and I need to turn them into normalized blend weights that sum to 1 before I combine their outputs."},{"title":"Portfolio weight normalization","prompt":"I've got raw allocation weights of 3, 7, 5, and 10 for four assets — can you normalize those so they sum to 1 so I can use them as portfolio fractions?"},{"title":"Signal preparation for agent pipeline","prompt":"Before I feed these signal strengths [0.1, 0.4, 0.9, 0.6] into my voting layer, I need them normalized to a valid probability distribution — can you do that?"}],"resultDescription":"A deterministic JSON object containing the normalized weights array where all values are non-negative and sum to 1.0, suitable for direct use as probability weights, ensemble blending coefficients, or allocation fractions.","failureModes":["All-zero input array — cannot normalize a zero-sum vector, returns error","Negative values in weights array — violates non-negative constraint, returns validation error","Empty array — no weights to normalize, returns error","Non-numeric values in array — schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a stateless, deterministic, local-only normalization of non-negative weights with no external dependencies or data retention — ideal for agent pipelines that need simplex projection of ensemble weights, portfolio allocations, or probability distributions without a licensed data feed or heavyweight ML dependency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:57:47.131Z","isFirstParty":false}