Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
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.
Trả về một Reducer tính toán độ dốc và độ lệch cho một phép hồi quy tuyến tính (có trọng số) của 2 đầu vào. Đầu vào dự kiến là dữ liệu x, sau đó là dữ liệu y. Nếu có thể, các đầu ra sẽ có tên là "scale", "offset".
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["This reducer calculates the slope (scale) and y-intercept (offset) of a linear regression line."],["It uses two input datasets: one for the x-values and one for the corresponding y-values."],["Weights can be applied to the data points for a weighted linear regression."],["The output of the reducer contains the calculated slope and offset, labeled as \"scale\" and \"offset\" respectively."]]],["This document describes a Reducer, `ee.Reducer.linearFit()`, which calculates a linear regression between two inputs, x and y data. It determines the slope (\"scale\") and y-intercept (\"offset\") of the linear relationship. This Reducer operates without any input arguments and returns a Reducer object. The core function is computing these two parameters, scale and offset, representing the best-fit line for the provided data.\n"]]