R/rho.fromVtoTri.R

#' Calculate rho of triangle from rho values of veritices
#'
#' Rho of triangle
#' @param rho.v is a scaler vector of rho of vertices
#' @param faces.v is a 3 x No.faces integer matrix
#' @keywords rho
#' @export

rho.fromVtoTri <- function(rho.v,faces.v){
  tmp.rho <- matrix(rho.v[faces.v],nrow=3)
  apply(tmp.rho,2,mean)
}
ryamada22/spinSpherization documentation built on May 28, 2019, 10:44 a.m.