Learn R Programming

cepp (version 1.7)

bases: Create random bases

Description

Generate bases.

Usage

basis_random(n, d = 2) basis_nearby(alpha = 0.75, method = 'geodesic', d = 2)

Arguments

n
The number of rows.
d
The number of columns.
alpha
How "far" away should the new matrix be generated?
method
How should be new matrix be found? One of linear or geodesic.

Value

basis_random, a random orthonormal matrix of specified dimensions.For basis_nearby, a function that can be used to generate new matrices "near" the current matrix.

Details

basis_random returns a new orthonormal matrix of specified dimensions.

basis_nearby generates a function. Calling this function with a matrix, hybridizes it with a new (randomly generated via basis_random) orthonormal matrix, and returns it.