draw a random sample from Mammen's two-point distribution

rMammen(n)

Arguments

n

sample size

Value

V random sample from Mammen's two-point distribution

Examples

rMammen(100)
#> [1] -0.618034 1.618034 -0.618034 -0.618034 1.618034 -0.618034 1.618034 #> [8] -0.618034 -0.618034 -0.618034 1.618034 1.618034 -0.618034 -0.618034 #> [15] 1.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 #> [22] -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 #> [29] -0.618034 -0.618034 1.618034 -0.618034 1.618034 -0.618034 -0.618034 #> [36] -0.618034 1.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 #> [43] 1.618034 -0.618034 -0.618034 1.618034 -0.618034 -0.618034 -0.618034 #> [50] -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 1.618034 1.618034 #> [57] -0.618034 1.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 #> [64] 1.618034 -0.618034 -0.618034 1.618034 1.618034 -0.618034 1.618034 #> [71] -0.618034 -0.618034 -0.618034 1.618034 -0.618034 -0.618034 1.618034 #> [78] -0.618034 1.618034 1.618034 -0.618034 1.618034 -0.618034 1.618034 #> [85] -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 -0.618034 #> [92] 1.618034 1.618034 -0.618034 -0.618034 -0.618034 1.618034 1.618034 #> [99] -0.618034 -0.618034