R/crit_statisWj_fast.R

Defines functions .crit_statisWj_fast

.crit_statisWj_fast=function(Wj, index, RVtot){
  #Wj list

  n=nrow(Wj[[1]])
  nblo=length(Wj)

  RV=RVtot[index, index]

  if (length(index)>1)
  {
    ressvd=svd(RV)
    lambda=ressvd$d[1]
  }else{
    lambda=1
  }


  Q=nblo-lambda

  return(Q)

}

Try the ClustBlock package in your browser

Any scripts or data that you put into this service are public.

ClustBlock documentation built on Aug. 30, 2023, 5:08 p.m.