Syntax:
TREND(known_y's, known_x's, new_x's, constant)
| known_y's, known_x's, new_x's | typically area references, possibly cell references or scalar values |
|---|---|
| constant | TRUE or FALSE: determines whether the regression line should include an intercept term |
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static double[][] | |
| public ValueEval | evaluate(ValueEval[]
the evaluated function arguments. Empty values are represented with
args, int BlankEval or MissingArgEval, never null.row index of the cell containing the formula under evaluation srcRowIndex, int column index of the cell containing the formula under evaluation srcColumnIndex)Implements org.
|
| private static double[] | |
| private static double[][] | |
| private static double[][] | |
| private static Trend. | |
| private static boolean | Returns: true if all columns contain the same valuecolumn-oriented matrix. A Row matrix should be transposed to column . matrix)Check if all columns in a matrix contain the same values. |
| private static double[][] |
| Trend | back to summary |
|---|---|
| public Trend() | |
| evalToArray | back to summary |
|---|---|
| private static double[][] evalToArray(ValueEval arg) throws EvaluationException | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) Implements org.
| |
| flattenArray | back to summary |
|---|---|
| private static double[] flattenArray(double[][] twoD) | |
| flattenArrayToRow | back to summary |
|---|---|
| private static double[][] flattenArrayToRow(double[][] twoD) | |
| getDefaultArrayOneD | back to summary |
|---|---|
| private static double[][] getDefaultArrayOneD(int w) | |
| getNewY | back to summary |
|---|---|
| private static Trend. | |
| isAllColumnsSame | back to summary |
|---|---|
| private static boolean isAllColumnsSame(double[][] matrix) Check if all columns in a matrix contain the same values. Return true if the number of distinct values in each column is 1.
| |
| switchRowsColumns | back to summary |
|---|---|
| private static double[][] switchRowsColumns(double[][] array) | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final double[] |
| Access | Constructor and Description |
|---|---|
| public |
| resultHeight | back to summary |
|---|---|
| private final int resultHeight | |
| resultWidth | back to summary |
|---|---|
| private final int resultWidth | |
| vals | back to summary |
|---|---|
| private final double[] vals | |
| TrendResults | back to summary |
|---|---|
| public TrendResults(double[] vals, int resultWidth, int resultHeight) | |