إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.ImageCollection.randomColumn
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تُضيف هذه الدالة عمودًا من الأرقام شبه العشوائية الحتمية إلى مجموعة. تكون النتائج أعدادًا عشرية بدقة مضاعفة. عند استخدام التوزيع "المنتظم" (التلقائي)، تكون النتائج في النطاق [0, 1). باستخدام التوزيع "العادي"، تكون القيم الناتجة هي μ=0 وσ=1، ولكن ليس لها حدود صريحة.
الاستخدام | المرتجعات |
---|
ImageCollection.randomColumn(columnName, seed, distribution, rowKeys) | FeatureCollection |
الوسيطة | النوع | التفاصيل |
---|
هذا: collection | FeatureCollection | مجموعة الإدخال التي تريد إضافة عمود عشوائي إليها |
columnName | سلسلة، الإعداد التلقائي: "عشوائي" | اسم العمود الذي تريد إضافته. |
seed | طويلة، القيمة التلقائية: 0 | بذرة تُستخدَم عند إنشاء الأرقام العشوائية |
distribution | سلسلة، الإعداد التلقائي: "uniform" | نوع توزيع الأرقام العشوائية المطلوب إنشاؤها، إما "موحد" أو "عادي". |
rowKeys | قائمة، اختيارية | قائمة بالسمات التي من المفترض أن تحدّد عنصرًا من المجموعة بشكل فريد ومتكرّر، وتُستخدَم لإنشاء الرقم العشوائي. الإعداد التلقائي هو [system:index]. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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\\]. |"]]