Usage
RPvectors(a, m, ortho = "none", distr = "uniform", par_unif = c(-1, 1),
par_norm = c(0, 1), par_eq = c(-1, 0, 1), par_uneq = c(-sqrt(3), 0, sqrt(3)),
par_uneqprob = c(1/6, 2/3, 1/6))
Arguments
a
number of generated vectors (>=1)
m
dimension of generated vectors (>=2)
ortho
orthogonalization of vectors:
"none" ... no orthogonalization (default);
"onfly" ... orthogonalization on the fly after each generated vector;
"end" ... orthogonalization at the end, after the whole random matrix was generated
distr
distribution of generated random vector components:
"uniform" ... uniformly distributed in range par_unif (see below);
default U[-1, +1];
"normal" ... normally distributed with parameters par_norm (see below);
typical N(0, 1);
"randeq" ... random selection of values par_eq (see below) with equal probabilities;
typically -1, 0, +1;
"randuneq" ... random selection of values par_uneq (see below) with
probabilties par_uneqprob (see below);
typical -(3)^0.5 with probability 1/6;
0 with probability 2/3;
+(3)^0.5 with probability 1/6
par_unif
parameters for range for distr=="uniform"; default to c(-1,1)
par_norm
parameters for mean and sdev for distr=="normal"; default to c(0,1)
par_eq
values for distr=="randeq" which are replicated; default to c(-1,0,1)
par_uneq
values for distr=="randuneq" which are replicated with probabilties par_uneqprob;
default to c(-sqrt(3),0,sqrt(3))
par_uneqprob
probabilities for distr=="randuneq" to replicate values par_uneq;
default to c(1/6,2/3,1/6)