ee.Reducer.linearFit
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca funkcję Reducer, która oblicza nachylenie i przesunięcie dla (ważonej) regresji liniowej 2 danych wejściowych. Dane wejściowe powinny być w formacie danych x, a następnie danych y. W odpowiednich przypadkach dane wyjściowe mają nazwy „scale” i „offset”.
Wykorzystanie | Zwroty |
---|
ee.Reducer.linearFit() | Ograniczenie |
Brak argumentów.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["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,[]]