fourpeaks: Fourpeaks Function

Description Value Author(s) Examples

Description

Fourpeaks is a two-dimensional, additively separable function of four Gaussian peaks

f(x) = \frac{1}{2} \bigl ( e^{ -(x_1 - \frac{1}{4})^2 / 0.3^2 } + e^{ -(x_2 - \frac{1}{4})^2 / 0.3^2} + e^{ -(x[, 1] - \frac{3}{4})^2 / 0.1^2 } + e^{ -(x_2 - \frac{3}{4})^2 /0.1^2} \bigr ).

On [0,1]^2 the function has 4 maxima and 9 minima

Value

returns N samples form the fourpeaks function

Author(s)

Samuel Gerber

Examples

1
2
3
4
5
6
7
data(fourpeaks)

d <- fourpeaks()

d <- fourpeaks(2000)

d <- fourpeaks(N=2000, phi=pi/4)

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

msr documentation built on May 30, 2017, 4:23 a.m.