# Krigging and Fuzzy kriging interpolation

### Description

This function provides kriging interpolation over the input data enriched by the
uncertainty with multiple dispatch. The input data must be an S4 object class
of `UncertainPoints`

or `Points`

in case
of Fuzzy kriging. Grid type of `Spatial`

. Output object is type of S4 class
`UncertainInterpolation`

or in case of Fuzzy kriging S4 class
`FuzzyInterpolation`

. For more informations about fuzzy kriging
interpolation read Details.

### Usage

1 2 3 4 5 6 7 8 9 | ```
## S4 method for signature 'UncertainPoints,Spatial'
krigingUncertain(object, grid, data_variogram = data, block = 0,
model = c("Sph", "Exp", "Gau", "Ste"), kappa = c(0.05, seq(0.2, 2, 0.1), 5, 10),
fix.values = c(NA,NA,NA), remove_duplicates = TRUE, verbose = FALSE, GLS.model = NA,
start_vals = c(NA,NA,NA), miscFitOptions = list())
## S4 method for signature 'Points,Spatial'
krigingUncertain(object, grid, krigingModel, psills, ranges, nuggets, models,
vgm_start, logResults=FALSE)
``` |

### Arguments

`object` |
Input data. An object of |

`grid` |
Input Spatial grid. |

`...` |
Additional arguments to be passed to |

`data_variogram` |
An optional way to provide a different dataset for the building of the variogram then for the spatial interpolation. |

`block` |
Use this parameter to pass on a specification for the block size. e.g. c(1000,1000) |

`model` |
List of models that will be tested during automatic variogram fitting |

`kappa` |
List of values for the smoothing parameter of the Matern model that will be tested during automatic variogram fitting. |

`fix.values` |
Can be used to fix a variogram parameter to a certain value. It consists of a list with a length of three. The items describe the fixed value for the nugget, range and sill respectively. Setting the value to NA means that the value is not fixed. Is passed on to autofitVariogram. |

`remove_duplicates` |
logical, remove duplicates from input |

`verbose` |
logical, if TRUE autoKrige will give extra information on the fitting process |

`GLS.model` |
If a variogram model is passed on through this parameter a Generalized Least Squares sample variogram is calculated. |

`start_vals` |
Can be used to give the starting values for the variogram fitting. The items describe the fixed value for the nugget, range and sill respectively. |

`miscFitOptions` |
Additional options to set the behavior of autofitVariogram. |

`krigingModel` |
Model of the kriging used in the calculations. |

`psills` |
Defined psills. |

`ranges` |
Defined ranges. |

`nuggets` |
Defined nuggets. |

`models` |
Variogram model of dependent variable (or its residuals). |

`vgm_start` |
Modal variogram selected for the data. |

`logResults` |
Was the dataset logaritmized prior to the calculation? |

### Details

The function for Fuzzy kriging and its processes were taken from source code Jan Caha. For more informations and details visit https://github.com/JanCaha/Hais2015-paper.

### Value

Returns an object of class `UncertainInterpolation`

or `FuzzyInterpolation`

.

### See Also

`UncertainPoints-class`

, `Points-class`

, `UncertainInterpolation-class`

, `FuzzyInterpolation-class`

, `Grid.def`

,`Grid.box`

, `Grid.interpolation`

, `autoKrige`

, `Plot`

, `uncertaintyInterpolation2-package`

, https://github.com/JanCaha/Hais2015-paper