# Conditional distribution of GMRF

### Description

Distribution of Gaussian Markov Random Field conditional on data observed with noise on the same grid.

### Usage

1 2 3 | ```
conditionalGmrf(param, Yvec, Xmat, NN,
template = NULL, mc.cores = 1,
cellsPerLoop = 10, ...)
``` |

### Arguments

`param` |
vector of named parameters |

`Yvec` |
vector of observed data, or matrix with each column being a realisation. |

`Xmat` |
Matrix of covariates. |

`NN` |
nearest neighbour matrix |

`template` |
Raster on which the GMRF is defined |

`mc.cores` |
passed to |

`cellsPerLoop` |
number of cells to compute simultaneously. Larger values consume more memory but result in faster computation. |

`...` |
additional arguments passed to |

### Value

Raster image with layers containing conditional mean and standard deviation.

### Author(s)

Patrick Brown

### See Also

`maternGmrfPrec`

, `lgm`