With this you can compute variogram and madogram (but remember that for classical geostatistical indexes you need to divide the derived isotropic index by 2!)
CalcMeans(deltas, w, exponent)
A raster with the mean of absolute values in the search window
The values from which calculate the median of absolute values (i.e., directional differences of order K)
The moving window used (e.g. w=KernelCircular(3))
The exponent: increasing the exponent increase the sensitivity to outliers. Set 2 for Variogram and 1 for Madogram.