{"uid":"cap_rdRBIoaES8nFg4xYlx8LM","slug":"numora-histogram-computation-2894a241","name":"Numora Histogram Computation","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numormo.vercel.app/api/statistics/histogram","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data"],"properties":{"bins":{"type":"integer"},"data":{"type":"array"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PzZ1mOx7mPDOUSKRrJeq8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a histogram (bin counts and edges) for a given array of numeric data with a configurable number of bins","exampleAgentPrompt":"Can you compute a histogram for this dataset [2.1, 3.5, 3.8, 5.0, 5.1, 7.4, 8.0, 9.2, 9.9, 10.0] using 5 bins and show me the frequency counts and bin edges?","exampleUseCases":[{"title":"Analyzing test score distribution","prompt":"I have these exam scores: [45, 52, 61, 63, 70, 72, 78, 80, 85, 88, 91, 95, 97] — can you bucket them into 5 histogram bins so I can see how students performed across ranges?"},{"title":"Distribution check for sensor readings","prompt":"Here are temperature sensor readings over the day: [20.1, 20.4, 21.0, 21.5, 22.3, 23.0, 23.8, 24.1, 25.5, 26.0, 27.2] — compute a histogram with 4 bins so I can see which temperature ranges appeared most often."},{"title":"Financial return frequency analysis","prompt":"I have daily portfolio returns for the past month: [-0.03, -0.01, 0.0, 0.005, 0.01, 0.015, 0.02, 0.025, 0.03, -0.02, 0.01] — bin them into 6 equal intervals and tell me the frequency in each bucket."}],"resultDescription":"Returns a JSON object with success=true, a computation string describing what was calculated, and a result object containing bin counts (frequencies per interval) and bin edges (the boundary values defining each bin). The number of edges is bins+1.","failureModes":["Missing or empty 'data' array returns a 400 error","Non-numeric values in the data array may cause a computation error","Requesting 0 or negative bins may return an error or undefined behavior","Very large arrays may increase latency but should still complete","Payment not included or insufficient USDC will result in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a pure server-side numerical histogram computation with no external dependencies — ideal for AI agents that have a raw numeric array and need bin counts and edges without installing a local math library. Prefer this over client-side approaches when running in environments without numpy/scipy, or when you need a reliable, stateless micropayment-accessible computation API on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:36.867Z","isFirstParty":false}