An example functions in two variables, with peaks.
Usage
peaks(v = 49, w)
Arguments
v
vector, whose length will be used, or a natural number.
w
another vector, will be used in meshgrid(x,y).
Value
Returns three matrices as a list with X, Y, and Z
components, the first two being the result of the meshgrid function,
and Z the application of the following function at the points of
X and Y:
peaks is a function of two variables, obtained by translating
and scaling Gaussian distributions, which is useful for demonstrating
three-dimensional plots.