Skip to contents

Helper function to rescale a sampled matrix

Usage

rescale(x, newrange = range(x))

Arguments

x

Vector defining new matrix coordinates

newrange

Vector defining range of old coordinates

Value

Vector containing rescaled coordinates

Examples

#HELPER FUNCTION