R/getStringy.R

Defines functions getStringy

#Compute the current value of the stringy scagnostic for a set of points

getStringy <- function(Ind){
  RS <- rowSums(Ind)
  V1 <- length(which(RS == 1))
  V2 <- length(which(RS == 2))
  V <- nrow(Ind)
  
  CurrentStringy <- (V2/(V-V1))^3
  
  return(list(CS=CurrentStringy,RS=RS))
}

Try the Datasmith package in your browser

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

Datasmith documentation built on May 29, 2017, 10:19 p.m.