ChartDirector 7.1 (C++ Edition)

TrendLayer.getCoefficient


Usage

double getCoefficient(int i);

Description

Gets the coefficients of the regression function.

The coefficients depend on the regression type. They are indexed as a0, a1, a2, ... in the regression type table published on TrendLayer.

Arguments

ArgumentDefaultDescription
i(Mandatory)The index of the coefficient to get.

Return Value

The coefficient ai in the regression function.