Skip to contents

Helper function to resize a matrix back to its original layout after sampling

Usage

ResizeMat(mat, ndim = dim(mat))

Arguments

mat

matrix defining the sampled object

ndim

number of dimentions to resize the sampled matrix to (default = dim(mat)).

Value

Returns a resized sampled matrix to match the dimentions of the original

Examples

#HELPER FUNCTION