Description Usage Arguments Value Author(s) See Also Examples

View source: R/grainSimilarityMatrices.R

Get the relative similarity matrix of grain types as used for snow profile alignments. This similarity matrix
considers the formation and metamorphosis of grain types, as well as quirks of the SNOWPACK model.

grainSimilarity_evaluate is an analogous matrix designed for assessing the similarity between two profiles, which
requires considering the resulting avalanche hazard implications of grain types.

The domain is `[0, 1]`

— `1`

representing identical grain types. The column 'NA' can be used for unknown grain
types.

1 | ```
grainSimilarity_align(triag = TRUE)
``` |

`triag` |
Return a triangular matrix (TRUE, default) or a symmetric matrix (FALSE) |

data.frame, either triangular or symmetric

fherla

grainSimilarity_evaluate, layerWeightingMat

1 2 3 4 5 6 7 | ```
## "similarity" matrix:
simMat <- grainSimilarity_align()
print(simMat)
## equivalent "distance" matrix:
distMat <- sim2dist(grainSimilarity_align())
print(distMat)
``` |

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.