SetFitLimits

SetFitLimits sets the AutoFit parameter limits for a variogram.

Syntax

object.SetFitLimits( Param, LowerLimit, UpperLimit )

Parameter

Type

Required/

Optional

Default

Description

Param

SrfVarioParam

Required

This enumerated parameter contains each parameter of the Variogram.AutoFit method. Param specifies the particular parameter for which limits are to be set.

LowerLimit

Double

Required

This specifies the lower value limit.

UpperLimit

Double

Required

This specifies the upper value limit.

Remarks

If the current parameter value is not within range of the specified limits, it is adjusted to the limits.

This method requires several steps:

1. Copy the current model to an array: m = .Model

2. Modify the array: m(1).SetFitLimits(srfVarioParam1,1,20)

3. Set the modified array back into the model: .Model = m

4. Call .AutoFit()

5. Get the new fitted model: m = .Model

6. Examine the parameters: Debug.Print m(1).Power

Example

VarioComponent(1).SetFitLimits(Param:=srfVarParam1, LowerLimit:=0.5, UpperLimit:=50)

Used by: VarioComponent object

See Also

AutoFit