{"uid":"cap_XpkjJNLmZQbcbmge2Bv7M","slug":"one-engine-linear-scale-normalizer-b7051249","name":"ONE Engine Linear Scale Normalizer","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/linear-scale/t3?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"max":{"type":"number"},"min":{"type":"number"},"size":{"type":"integer"},"digits":{"type":"integer"},"factor":{"type":"number"},"offset":{"type":"number"},"values":{"type":"array","description":"Finite numbers, maximum 1000"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WZerW226zkKh3eYEE6CyX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Linearly scales/normalizes an array of numeric values to a target range using configurable min, max, factor, offset, and precision parameters.","exampleAgentPrompt":"Normalize these numbers [0.5, 3.2, 7.8, 1.1, 9.4] to a 0-to-100 scale with 2 decimal places using ONE Engine's linear scale endpoint.","exampleUseCases":[{"title":"Normalizing ML features before training","prompt":"I have these raw feature values [120, 450, 33, 780, 210] and I need them normalized to a 0-to-1 range with 4 decimal digits so I can feed them into my model — can you run them through the linear scale normalizer?"},{"title":"Rescaling survey scores to percentages","prompt":"Take these survey response scores [2, 4, 1, 5, 3, 4] where the scale goes from 1 to 5, and rescale them to a 0-to-100 percentage range with no decimal places."},{"title":"Applying gain and offset to sensor data","prompt":"I've got sensor readings [0.02, 0.15, 0.08, 0.31, 0.27] and I need to apply a factor of 3.5 and an offset of -0.5 to each value — use the linear scale API and give me results to 3 decimal digits."}],"resultDescription":"A JSON object containing the linearly scaled/normalized output values corresponding to the input array, transformed according to the specified min, max, factor, offset, and digits parameters.","failureModes":["More than 1000 values in the input array — request rejected","Non-finite numbers (NaN, Infinity) in the values array — validation error","Missing required 'values' field — 400 bad request","Payment failure via x402 protocol — 402 payment required","Malformed JSON body — parse error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.001 USDC) serverless linear normalization of a numeric array without standing up your own compute. It is ideal for preprocessing steps in agent pipelines where data needs to be rescaled to a known range before downstream ML inference, visualization, or comparison operations. Prefer it over manual computation when operating in an autonomous agent context with x402 micropayment capability on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:20.542Z","isFirstParty":false,"canonicalSlug":"one-engine-linear-scale-normalizer-b7051249"}