constructor_randomprojection {spareg} | R Documentation |
Constructor function for building 'randomprojection'
objects
Description
Creates an object class 'randomprojection'
using arguments passed by user.
Usage
constructor_randomprojection(
name,
generate_fun,
update_fun = NULL,
update_rpm_w_data = NULL,
control = list()
)
Arguments
name |
character |
generate_fun |
function for generating the random projection matrix. This
function should have with arguments |
update_fun |
function for updating the |
update_rpm_w_data |
function for updating the random projection matrix with data.
This can be used for the case where a list of random projection matrices is
provided by argument |
control |
list of controls for random projection. Can include minimum and
maximum dimension for the projection defaults to
|
Value
a function which in turn creates an object of class 'randomprojection'