R/schwefel_12.R

Defines functions schwefel_12

Documented in schwefel_12

schwefel_12 <- function(x) {
  return(sum(sapply(1:length(x), function(i) sum(x[1:i])^2)))
}

Try the EEEA package in your browser

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

EEEA documentation built on June 10, 2025, 9:13 a.m.