Description Usage Arguments Details Value Note Examples

Extend a matrix to the desired size.

1 2 3 4 5 | ```
pad(x, N, Ny = N, value = min(x, na.rm = TRUE))
put_in_mirror(x, N, Ny = N)
period_bc(x, N, Ny = N)
``` |

`x` |
a real matrix |

`N` |
the number of rows of the desired output |

`Ny` |
the number of columns of the desired output, defaults to N |

`value` |
the value with which the picture is padded by |

`pad`

pads the fields with a constant value on all sides, be careful what you pick here. `put_in_mirror`

reflects the input at all edges (with repeated end samples), `period_bc`

simply repeats the input periodically. In any case, you can retrieve the initial area via `bc$res[ bc$px, bc$py ]`

.

a list containing the extended matrix (`$res`

) and the positions of the original matrix within the extended one (`$px`

and `$py`

).

N and Ny must be at least as big as the input.

1 2 3 |

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.