ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অ্যাক্সেস বজায় রাখার জন্য
অবাণিজ্যিক যোগ্যতা যাচাই করতে হবে। আপনি যদি 26 সেপ্টেম্বর, 2025 এর মধ্যে যাচাই না করে থাকেন তবে আপনার অ্যাক্সেস হোল্ডে রাখা হতে পারে।
ee.FeatureCollection.randomColumn
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সংগ্রহে নির্ধারক সিউডোর্যান্ডম সংখ্যার একটি কলাম যোগ করে। আউটপুট হল ডবল-নির্ভুল ফ্লোটিং পয়েন্ট সংখ্যা। 'ইউনিফর্ম' ডিস্ট্রিবিউশন ব্যবহার করার সময় (ডিফল্ট), আউটপুটগুলি [0, 1) এর পরিসরে থাকে। 'স্বাভাবিক' ডিস্ট্রিবিউশন ব্যবহার করে, আউটপুটগুলিতে μ=0, σ=1 আছে, কিন্তু কোনো সুস্পষ্ট সীমা নেই।
| ব্যবহার | রিটার্নস | FeatureCollection. randomColumn ( columnName , seed , distribution , rowKeys ) | ফিচার কালেকশন |
| যুক্তি | টাইপ | বিস্তারিত | এই: collection | ফিচার কালেকশন | ইনপুট সংগ্রহ যেখানে একটি এলোমেলো কলাম যোগ করতে হবে। |
columnName | স্ট্রিং, ডিফল্ট: "এলোমেলো" | কলামের নাম যোগ করতে হবে। |
seed | দীর্ঘ, ডিফল্ট: 0 | এলোমেলো সংখ্যা তৈরি করার সময় ব্যবহৃত একটি বীজ। |
distribution | স্ট্রিং, ডিফল্ট: "ইউনিফর্ম" | উৎপন্ন করার জন্য এলোমেলো সংখ্যার বিতরণের ধরন; 'ইউনিফর্ম' বা 'স্বাভাবিক'-এর একটি। |
rowKeys | তালিকা, ঐচ্ছিক | বৈশিষ্ট্যের একটি তালিকা যা স্বতন্ত্রভাবে এবং পুনরাবৃত্তভাবে সংগ্রহের একটি উপাদান সনাক্ত করতে হবে, র্যান্ডম সংখ্যা তৈরি করতে ব্যবহৃত হয়। [system:index]-এ ডিফল্ট। |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
print('N features in collection', fc.size());
// Add a uniform distribution random value column to the FeatureCollection.
fc = fc.randomColumn();
// Randomly split the collection into two sets, 30% and 70% of the total.
var randomSample30 = fc.filter('random < 0.3');
print('N features in 30% sample', randomSample30.size());
var randomSample70 = fc.filter('random >= 0.3');
print('N features in 70% sample', randomSample70.size()); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap
Colab (পাইথন)
# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
'country_lg == "Belgium"')
display('N features in collection:', fc.size())
# Add a uniform distribution random value column to the FeatureCollection.
fc = fc.randomColumn()
# Randomly split the collection into two sets, 30% and 70% of the total.
random_sample_30 = fc.filter('random < 0.3')
display('N features in 30% sample:', random_sample_30.size())
random_sample_70 = fc.filter('random >= 0.3')
display('N features in 70% sample:', random_sample_70.size())
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["This tool adds a column of pseudorandom numbers to a FeatureCollection. Users can specify the `columnName`, `seed`, and `distribution`. The default distribution, 'uniform', generates numbers between 0 and 1; 'normal' produces numbers with a mean of 0 and a standard deviation of 1. The `randomColumn` method returns the modified FeatureCollection. This is exemplified by creating random splits into subsets. The outputs are double-precision floating point numbers.\n"]]