WebCab Probability and Statistics for COM v3.6

FactorModel.AddCosineSum Method 

Adds a sum a Cosine functions to an elements of the function basis.

public void AddCosineSum(
   double[] cosCoeff,
   double[] coefficient,
   double[] constant,
   double[] exponent
);

Parameters

cosCoeff
An array where the k-th term is the coefficient of the (k+1)-th term of the sum of Cosine terms (i.e. ak).
coefficient
constant
An array where the k-th term is the constant shift in the x-axis of the Cosine term of the (k+1)-th term of the sum of Cosine terms (i.e. ck).
exponent
An array where the k-th term is the exponent of the Cosine term of the (k+1)-th term of the sum of the Cosine terms (i.e. bk).An array where the k-th term is the exponent of the Cosine term within the (k+1)-th term of the sum of the Cosine terms (i.e. nk).

Remarks

Please note that the k-th term of the sum which makes up the basis function will take to form:

k-th Term = ak * (Cosnk (bk * x + ck)),

where the Cosine function is in terms of radians, and ak, nk, bk, ck are real numbers. Please, in order to construct the sum you just sum over k starting at 0.

Notes on the Radian measure

Radians are a means by which to describe the angle and are related to the more commonly used degrees as follows:

360 degrees = 2 * Pi * radians

therefore, 1 radian = 180 / Pi degrees = 57.295... degrees.

See Also

FactorModel Class | WebCab.COM.Statistics.CurveFitting Namespace