Learn R Programming

FPCdpca (version 0.4.0)

Drp: Distributed random projection

Description

Distributed random projection

Usage

Drp(data,K, nk,d)

Value

MSEXrp, MSEvrp, MSESrp, kopt

Arguments

data

is sparse random projection matrix

K

is the number of distributed nodes.

nk

is the size of subsets.

d

is the dimension number. n is the sample size. p the number of variables.

Examples

Run this code
K=20; nk=50; nr=10; p=8; d=5; n=K*nk;
data=matrix(c(rnorm((n-nr)*p,0,1),rpois(nr*p,100)),ncol=p)
data=matrix(rpois((n-nr)*p,1),ncol=p); rexp(nr*p,1); rchisq(10000, df = 5);
Drp(data=data,K=K, nk=nk,d=d)

Run the code above in your browser using DataLab