Learn R Programming

msr (version 0.4.4)

diagonal: Diagonal Function

Description

Diagonal Function, cosine along the diagonal of a d-dimensional hypercube with exponential enevlope orthogonal to diagonal.

$ f(x) = \frac{1}{2} \cos( \frac{ \sqrt() }{\sqrt(d)p\pi} ) \exp( \frac{ || x ||^2 - }{d} ) $ with $v = \frac{\mathbf{1}}{\sqrt(d)} $the unit length digonal vector .

Arguments

Value

returns N samples form the diagonal function

Examples

Run this code
data(diagonal)

d <- diagonal()

d <- diagonal(d = 3, p = 4, N=2000)

Run the code above in your browser using DataLab