ee.Reducer.percentile
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ऐसा रिड्यूसर बनाएं जो तय किए गए पर्सेंटाइल की गिनती करे.उदाहरण के लिए, [0, 50, 100] दिए जाने पर, 'p0', 'p50', और 'p100' नाम के आउटपुट जनरेट होंगे. इनमें कम से कम, मीडियन, और ज़्यादा से ज़्यादा वैल्यू शामिल होगी. कम संख्या में इनपुट (maxRaw तक) के लिए, पर्सेंटाइल सीधे तौर पर कैलकुलेट किए जाएंगे. ज़्यादा संख्या में इनपुट के लिए, पर्सेंटाइल को हिस्टोग्राम से निकाला जाएगा.
इस्तेमाल | रिटर्न |
---|
ee.Reducer.percentile(percentiles, outputNames, maxBuckets, minBucketWidth, maxRaw) | रेड्यूसर |
आर्ग्यूमेंट | टाइप | विवरण |
---|
percentiles | सूची | 0 से 100 के बीच की संख्याओं की सूची. |
outputNames | सूची, डिफ़ॉल्ट: null | आउटपुट के नामों की सूची या डिफ़ॉल्ट नाम पाने के लिए, शून्य. |
maxBuckets | पूर्णांक, डिफ़ॉल्ट: null | हिस्टोग्राम बनाते समय इस्तेमाल किए जाने वाले बकेट की ज़्यादा से ज़्यादा संख्या. इसे दो की घात के हिसाब से राउंड अप किया जाएगा. |
minBucketWidth | फ़्लोट, डिफ़ॉल्ट: null | हिस्टोग्राम बकेट की कम से कम चौड़ाई या किसी भी पावर ऑफ़ 2 की अनुमति देने के लिए शून्य. |
maxRaw | पूर्णांक, डिफ़ॉल्ट: null | शुरुआती हिस्टोग्राम बनाने से पहले, इकट्ठा की जाने वाली वैल्यू की संख्या. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis reducer calculates specified percentiles (e.g., minimum, median, maximum) from a set of input values.\u003c/p\u003e\n"],["\u003cp\u003eFor smaller datasets, percentiles are computed directly; for larger datasets, a histogram-based approach is used for efficiency.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the percentiles to compute, output band names, and fine-tune the histogram construction parameters.\u003c/p\u003e\n"]]],["The `ee.Reducer.percentile` function computes specified percentiles from a dataset. It accepts a list of `percentiles` (0-100) and optional `outputNames`. For large datasets, it builds a histogram with a `maxBuckets` limit and `minBucketWidth`. For smaller datasets (up to `maxRaw`), it computes percentiles directly. The function returns a Reducer, producing outputs with names like 'p0', 'p50', etc., representing the corresponding percentiles. The user can set custom names or null for defaults.\n"],null,["# ee.Reducer.percentile\n\nCreate a reducer that will compute the specified percentiles, e.g. given \\[0, 50, 100\\] will produce outputs named 'p0', 'p50', and 'p100' with the min, median, and max respectively. For small numbers of inputs (up to maxRaw) the percentiles will be computed directly; for larger numbers of inputs the percentiles will be derived from a histogram.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------|---------|\n| `ee.Reducer.percentile(percentiles, `*outputNames* `, `*maxBuckets* `, `*minBucketWidth* `, `*maxRaw*`)` | Reducer |\n\n| Argument | Type | Details |\n|------------------|------------------------|-----------------------------------------------------------------------------------------------------|\n| `percentiles` | List | A list of numbers between 0 and 100. |\n| `outputNames` | List, default: null | A list of names for the outputs, or null to get default names. |\n| `maxBuckets` | Integer, default: null | The maximum number of buckets to use when building a histogram; will be rounded up to a power of 2. |\n| `minBucketWidth` | Float, default: null | The minimum histogram bucket width, or null to allow any power of 2. |\n| `maxRaw` | Integer, default: null | The number of values to accumulate before building the initial histogram. |"]]