ee.ImageCollection.formaTrend
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tính toán xu hướng dài hạn và ngắn hạn của một chuỗi thời gian hoặc xu hướng của tỷ lệ giữa chuỗi thời gian và một biến phụ (nếu có). Xu hướng dài hạn được ước tính từ số hạng tuyến tính của một phép hồi quy trên toàn bộ chuỗi thời gian. Xu hướng ngắn hạn được tính là giá trị tối thiểu theo cửa sổ trong chuỗi thời gian.
Chuỗi thời gian và chuỗi hiệp biến dự kiến sẽ chứa mỗi chuỗi một dải tần và chuỗi thời gian dự kiến sẽ được phân bổ đều theo thời gian. Đầu ra là 4 dải băng số thực: xu hướng dài hạn và ngắn hạn, kiểm định t của xu hướng dài hạn so với chuỗi thời gian và kiểm định Bruce Hansen về tính ổn định của tham số.
Cách sử dụng | Giá trị trả về |
---|
ImageCollection.formaTrend(covariates, windowSize) | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: timeSeries | ImageCollection | Bộ sưu tập mà từ đó bạn có thể trích xuất xu hướng. |
covariates | ImageCollection, mặc định: null | Các hệ số phụ cần dùng trong phân tích xu hướng. |
windowSize | Số nguyên, mặc định: 6 | Kích thước cửa sổ phân tích xu hướng ngắn hạn, tính bằng hình ảnh. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]