ee.ImageCollection.formaTrend
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำนวณแนวโน้มระยะยาวและระยะสั้นของอนุกรมเวลา หรือแนวโน้มของอัตราส่วนของอนุกรมเวลาและตัวแปรร่วม (ไม่บังคับ) แนวโน้มระยะยาวประมาณค่าจากเทอมเชิงเส้นของการถดถอยในอนุกรมเวลาทั้งหมด แนวโน้มระยะสั้นจะคำนวณเป็นค่าต่ำสุดแบบกรอบเวลาในช่วงอนุกรมเวลา
อนุกรมเวลาและอนุกรมตัวแปรร่วมควรมีแถบเดียว และอนุกรมเวลาควรมีระยะห่างเท่ากันในเวลา เอาต์พุตคือแถบลอย 4 แถบ ได้แก่ แนวโน้มระยะยาวและระยะสั้น การทดสอบ t ของแนวโน้มระยะยาวเทียบกับอนุกรมเวลา และการทดสอบความเสถียรของพารามิเตอร์ของ Bruce Hansen
การใช้งาน | การคืนสินค้า |
---|
ImageCollection.formaTrend(covariates, windowSize) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ timeSeries | ImageCollection | คอลเล็กชันที่จะดึงข้อมูลเทรนด์ |
covariates | ImageCollection, ค่าเริ่มต้น: null | ปัจจัยร่วมที่จะใช้ในการวิเคราะห์แนวโน้ม |
windowSize | จำนวนเต็ม ค่าเริ่มต้น: 6 | ขนาดกรอบการวิเคราะห์แนวโน้มระยะสั้นเป็นรูปภาพ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCalculates long-term and short-term trends of a time series, optionally considering a covariate for ratio trends.\u003c/p\u003e\n"],["\u003cp\u003eLong-term trends are determined through linear regression over the entire series, while short-term trends use a windowed minimum approach.\u003c/p\u003e\n"],["\u003cp\u003eOutputs include the long and short-term trends, a t-test for the long-term trend's significance, and a stability test.\u003c/p\u003e\n"],["\u003cp\u003eRequires an evenly spaced time series ImageCollection and an optional covariate ImageCollection.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the short-term trend analysis by adjusting the window size.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.formaTrend\n\nComputes the long and short term trends of a time series or optionally, the trends of the ratio of the time series and a covariate. The long term trend is estimated from the linear term of a regression on the full time series. The short term trend is computed as the windowed minimum over the time series.\n\n\u003cbr /\u003e\n\nThe time series and covariate series are expected to contain a single band each, and the time series is expected to be evenly spaced in time. The output is 4 float bands: the long and short term trends, the t-test of the long term trend against the time series, and the Bruce Hansen test of parameter stability.\n\n| Usage | Returns |\n|---------------------------------------------------------------|---------|\n| ImageCollection.formaTrend`(`*covariates* `, `*windowSize*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|--------------------------------|---------------------------------------------------|\n| this: `timeSeries` | ImageCollection | Collection from which to extract trends. |\n| `covariates` | ImageCollection, default: null | Cofactors to use in the trend analysis. |\n| `windowSize` | Integer, default: 6 | Short term trend analysis window size, in images. |"]]