IMSL C# Numerical Library

NonlinearRegression.Scale Property

The scaling array for theta.

public virtual double[] Scale {set;}

Property Value

A double array containing the scaling values for the parameters (theta).

Remarks

The elements of the scaling array must be greater than zero. Scale is used mainly in scaling the gradient and the distance between points. If good starting values of theta are known and are nonzero, then a good choice is Scale[i]=1.0/theta[i]. Otherwise, if theta is known to be in the interval (-10.e5, 10.e5), set Scale[i]=10.e-5. By default, the elements of the scaling array are set to 1.0.

By default, Scale is an array of ones.

Exceptions

Exception TypeCondition
ArgumentException is thrown thrown if any of the elements of Scale is set less than or equal to 0

See Also

NonlinearRegression Class | Imsl.Stat Namespace