Type Alias NxTrendline

Information about the calculated trendline.

Stability: experimental

type NxTrendline = {
    qCoeff?: number[];
    qElemNo?: number;
    qError?: NxValidationError;
    qExpression?: string;
    qR2?: number;
    qType?: NxLTrendlineType;
}
Index

Properties

qCoeff?: number[]

Coefficent c0..cN depending on the trendline type.

qElemNo?: number

Inner Dim elem no

This parameter is optional and is displayed in case of error.

qExpression?: string

Trendline expression

qR2?: number

R2 score. Value between 0..1 that shows the correlation between the trendline and the data. Higher value means higher correlation.

Type of trendline

One of:

  • AVERAGE or Average
  • LINEAR or Linear
  • POLYNOMIAL2 or Polynomial2
  • POLYNOMIAL3 or Polynomial3
  • POLYNOMIAL4 or Polynomial4
  • EXPONENTIAL or Exponential
  • POWER or Power
  • LOG or Logarithmic