R/hyperplaneOrthogonalVector.R

Defines functions `hyperplaneOrthogonalVector`

`hyperplaneOrthogonalVector` <-
function( X=diag(rep(1,3)) ){
   k <- ncol(X)
   d <- numeric(k)
   v <- rep(1,k)   
   Y <- X
   for (i in 1:k){
      Y[,i] <- v
      d[i] <- det(Y)
      Y[,i] <- X[,i]
   }
   return(d)
}

Try the OjaNP package in your browser

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

OjaNP documentation built on Feb. 23, 2020, 5:07 p.m.