공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Reducer.linearFit
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
2개 입력의 (가중) 선형 회귀의 기울기와 오프셋을 계산하는 리듀서를 반환합니다. 입력은 x 데이터와 y 데이터가 순서대로 이어져야 합니다. 해당하는 경우 출력의 이름은 'scale', 'offset'입니다.
사용 | 반환 값 |
---|
ee.Reducer.linearFit() | 감소기 |
인수가 없습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThis reducer calculates the slope (scale) and y-intercept (offset) of a linear regression line.\u003c/p\u003e\n"],["\u003cp\u003eIt uses two input datasets: one for the x-values and one for the corresponding y-values.\u003c/p\u003e\n"],["\u003cp\u003eWeights can be applied to the data points for a weighted linear regression.\u003c/p\u003e\n"],["\u003cp\u003eThe output of the reducer contains the calculated slope and offset, labeled as "scale" and "offset" respectively.\u003c/p\u003e\n"]]],["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"],null,["# ee.Reducer.linearFit\n\nReturns a Reducer that computes the slope and offset for a (weighted) linear regression of 2 inputs. The inputs are expected to be x data followed by y data. Where applicable, the outputs are named: \"scale\", \"offset\".\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------|---------|\n| `ee.Reducer.linearFit()` | Reducer |\n\n**No arguments.**"]]