Nothing
#' Polygonal internal variance
#' @description Caltulate the symbolic polygonal internal variance for a polygonal data.
#' @param polygon a matrix that represents a polygonal variable.
#' @return The internal variance.
#' @examples
#' x <- psim(10, 10) #simulate 10 polygons of 10 sides
#' pvari(x[[1]])
#' @export
pvari <- function(polygon){
if(nrow(polygon) < 3){
stop("Insert a valid polygon!")
}
first_moment <- pmean_id(polygon)
second_moment <- psmi(polygon)
x <- (second_moment[1] - first_moment[1]^2)
y <- (second_moment[2] - first_moment[2]^2)
return(c(x,y))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.