Description Usage Arguments Details Value See Also Examples

Estimate the shape of one set of landmarks by averaging the shape of the nearest neighbours obtained by a second set of landmarks. Weights are calculated either form Mahalanobis or Procrustes distances. This can be useful for data with missing landmarks.

1 2 3 4 5 6 7 | ```
NNshapeReg(
x,
y = NULL,
n = 3,
mahalanobis = FALSE,
mc.cores = parallel::detectCores()
)
``` |

`x` |
an array or matrix (one row per specim) with data used for estimating weights. |

`y` |
an array or matrix (one row per specim) with landmark data on which the weighted averaging is applied for prediction. If NULL, x will be used for both tasks. |

`n` |
amount of nearest neighbours to consider |

`mahalanobis` |
logical: use mahalanobis distance |

`mc.cores` |
integer: amount of cores used for parallel processing. |

This function calculates weights from one set of shape data and then estimates the shape of another (or same) set of landmarks. CAUTION: landmark data has to be registered beforehand.

matrix or array of estimates.

1 2 3 4 5 6 7 8 9 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.