AutoFit - Automation

AutoFit automatically fits variogram parameters to the current model.

Syntax

object.AutoFit( FitMethod, Precision, MaxDistance, Iterations )

Parameter

Type

Default

Description

FitMethod

SrfVarioFitMethod

srfVarioFitLeastSquares

optional; This parameter specifies the Fit Criterion to be followed. There are three options: the default linear variogram method, least square method or least absolute value method.

Precision

Double

0.0001

optional; This parameter specifies the target precision or, the maximum relative change in the objective function during one iteration.

MaxDistance

Double

1.0e38

optional; This provides the maximum distance an user is interested to work with while fitting the model to the data contained in the variogram grid.

Iterations

Integer

50

optional; This specifies the maximum number of iterations after which a search stops. However, the search also terminate if a target precision is met.

Remarks

Lower and Upper limits for each of the parameters could be set by the SetFitLimits method.

Example 1

This example demonstrates how to add a least square fit to a variogram model.

Variogram.AutoFit(FitMethod:=srfVarioFitLeastSquares)

Example 2

This script displays all the methods and properties in the Variogram object.

Used by: Variogram object