ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Array.reduce
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রতিটি নির্দিষ্ট অক্ষ বরাবর সমস্ত ইনপুট মানগুলিকে রিডুসার দ্বারা গণনা করা একটি একক আউটপুট মান ভেঙে একটি অ্যারেতে একটি রিডুসার প্রয়োগ করুন৷
আউটপুট সবসময় ইনপুট হিসাবে একই মাত্রিকতা আছে, এবং পৃথক অক্ষ নিম্নরূপ প্রভাবিত হয়:
'অক্ষ' প্যারামিটারে উল্লিখিত অক্ষগুলির দৈর্ঘ্য 1 এ হ্রাস পেয়েছে (রিডুসার প্রয়োগ করে)।
যদি রিডুসারের একাধিক ইনপুট বা একাধিক আউটপুট থাকে, তাহলে 'fieldAxis'-এ নির্দিষ্ট করা অক্ষটি রিডুসারের ইনপুট প্রদান করতে এবং রিডুসারের আউটপুটগুলি সংরক্ষণ করতে ব্যবহার করা হবে।
অন্যান্য সমস্ত অক্ষ প্রভাবিত হয় না (স্বতন্ত্র হ্রাস করা হয়)।
ব্যবহার | রিটার্নস | Array. reduce (reducer, axes, fieldAxis ) | অ্যারে |
যুক্তি | টাইপ | বিস্তারিত | এই: array | অ্যারে | অ্যারে। |
reducer | হ্রাসকারী | রিডুসার প্রয়োগ করতে হবে। এর প্রতিটি আউটপুট একটি সংখ্যা হতে হবে, একটি অ্যারে বা অন্য ধরনের নয়। |
axes | তালিকা | অক্ষের তালিকা যা কমাতে হবে। এই সমস্ত অক্ষে আউটপুটের দৈর্ঘ্য 1 হবে। |
fieldAxis | পূর্ণসংখ্যা, ডিফল্ট: নাল | রিডুসারের ইনপুট এবং আউটপুট ক্ষেত্র হিসাবে ব্যবহার করা অক্ষ। শুধুমাত্র রিডুসারের একাধিক ইনপুট বা একাধিক আউটপুট থাকলেই প্রয়োজন, এই ক্ষেত্রে অক্ষের দৈর্ঘ্য অবশ্যই রিডুসার ইনপুটগুলির সংখ্যার সমান হবে এবং ফলাফলে এটির দৈর্ঘ্য হবে রিডুসার আউটপুটগুলির সংখ্যার সমান। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eArray.reduce\u003c/code\u003e collapses input values along specified axes into single output values using a reducer function.\u003c/p\u003e\n"],["\u003cp\u003eThe output array retains the original input dimensionality, with specified axes reduced to length 1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003efieldAxis\u003c/code\u003e is used when your reducer has multiple inputs or outputs, aligning with those fields.\u003c/p\u003e\n"],["\u003cp\u003eIndependent reductions are performed along all other axes not specified in the \u003ccode\u003eaxes\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# ee.Array.reduce\n\nApply a reducer to an array by collapsing all the input values along each specified axis into a single output value computed by the reducer.\n\n\u003cbr /\u003e\n\nThe output always has the same dimensionality as the input, and the individual axes are affected as follows:\n\n- The axes specified in the 'axes' parameter have their length reduced to 1 (by applying the reducer).\n\n- If the reducer has multiple inputs or multiple outputs, the axis specified in 'fieldAxis' will be used to provide the reducer's inputs and store the reducer's outputs.\n\n- All other axes are unaffected (independent reductions are performed).\n\n| Usage | Returns |\n|----------------------------------------------|---------|\n| Array.reduce`(reducer, axes, `*fieldAxis*`)` | Array |\n\n| Argument | Type | Details |\n|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `array` | Array | The array. |\n| `reducer` | Reducer | The reducer to apply. Each of its outputs must be a number, not an array or other type. |\n| `axes` | List | The list of axes over which to reduce. The output will have a length of 1 in all these axes. |\n| `fieldAxis` | Integer, default: null | The axis to use as the reducer's input and output fields. Only required if the reducer has multiple inputs or multiple outputs, in which case the axis must have length equal to the number of reducer inputs, and in the result it will have length equal to the number of reducer outputs. |"]]