ee.ImageCollection.randomColumn
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी कलेक्शन में, डेटरमिनिस्टिक स्यूडोरैंडम नंबर का कॉलम जोड़ता है. आउटपुट, डबल-प्रिसिशन फ़्लोटिंग पॉइंट नंबर होते हैं. 'यूनिफ़ॉर्म' डिस्ट्रिब्यूशन (डिफ़ॉल्ट) का इस्तेमाल करने पर, आउटपुट [0, 1] की रेंज में होते हैं. 'सामान्य' डिस्ट्रिब्यूशन का इस्तेमाल करने पर, आउटपुट में μ=0, σ=1 होता है. हालांकि, इनकी कोई तय सीमा नहीं होती.
इस्तेमाल | रिटर्न |
---|
ImageCollection.randomColumn(columnName, seed, distribution, rowKeys) | FeatureCollection |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: collection | FeatureCollection | वह इनपुट कलेक्शन जिसमें कोई रैंडम कॉलम जोड़ना है. |
columnName | स्ट्रिंग, डिफ़ॉल्ट: "random" | जोड़ने के लिए कॉलम का नाम. |
seed | लंबी, डिफ़ॉल्ट: 0 | रैंडम नंबर जनरेट करते समय इस्तेमाल किया जाने वाला सीड. |
distribution | स्ट्रिंग, डिफ़ॉल्ट: "uniform" | रैंडम नंबर जनरेट करने के लिए, डिस्ट्रिब्यूशन का टाइप; 'यूनिफ़ॉर्म' या 'नॉर्मल' में से कोई एक. |
rowKeys | सूची, ज़रूरी नहीं | ऐसी प्रॉपर्टी की सूची जो कलेक्शन के किसी एलिमेंट की पहचान, यूनीक और बार-बार करने में सक्षम होनी चाहिए. इसका इस्तेमाल, रैंडम नंबर जनरेट करने के लिए किया जाता है. डिफ़ॉल्ट रूप से, [system:index] पर सेट होता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eAdds a new column of random numbers to an existing FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify the column name, seed for reproducibility, and distribution type (uniform or normal).\u003c/p\u003e\n"],["\u003cp\u003eThe 'uniform' distribution generates numbers between 0 (inclusive) and 1 (exclusive), while the 'normal' distribution generates numbers with a mean of 0 and standard deviation of 1.\u003c/p\u003e\n"],["\u003cp\u003eThe output is a new FeatureCollection with the added random column.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.randomColumn\n\nAdds a column of deterministic pseudorandom numbers to a collection. The outputs are double-precision floating point numbers. When using the 'uniform' distribution (default), outputs are in the range of \\[0, 1). Using the 'normal' distribution, outputs have μ=0, σ=1, but have no explicit limits.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------|-------------------|\n| ImageCollection.randomColumn`(`*columnName* `, `*seed* `, `*distribution* `, `*rowKeys*`)` | FeatureCollection |\n\n| Argument | Type | Details |\n|--------------------|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | FeatureCollection | The input collection to which to add a random column. |\n| `columnName` | String, default: \"random\" | The name of the column to add. |\n| `seed` | Long, default: 0 | A seed used when generating the random numbers. |\n| `distribution` | String, default: \"uniform\" | The distribution type of random numbers to produce; one of 'uniform' or 'normal'. |\n| `rowKeys` | List, optional | A list of properties that should uniquely and repeatably identify an element of the collection, used to generate the random number. Defaults to \\[system:index\\]. |"]]