ee.Reducer.linearRegression
Creates a reducer that computes a linear least squares regression with numX independent variables and numY dependent variables.
Each input tuple will have values for the independent variables followed by the dependent variables.
The first output is a coefficients array with dimensions (numX, numY); each column contains the coefficients for the corresponding dependent variable. The second output is a vector of the root mean square of the residuals of each dependent variable. Both outputs are null if the system is underdetermined, e.g., the number of inputs is less than or equal to numX.
Usage | Returns |
---|
ee.Reducer.linearRegression(numX, numY) | Reducer |
Argument | Type | Details |
---|
numX | Integer | The number of input dimensions. |
numY | Integer, default: 1 | The number of output dimensions. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Computes a linear least squares regression with user-defined independent and dependent variables."],["Each input to the reducer should contain values for independent variables followed by dependent variables."],["Outputs a coefficients array and a root mean square error vector, or null if the system is underdetermined."],["The coefficients array provides coefficients for each dependent variable, organized in columns."],["The root mean square error vector quantifies the residual error for each dependent variable."]]],[]]