powered by
Sum of square function $$ssq = \sum_i x_i^2$$
# S3 method for modello_number ssq(x)# S3 method for default ssq(x)ssq(x)
# S3 method for default ssq(x)
ssq(x)
a 'numeric' or a reference object of class 'number'
Returns a 'numeric' or reference object of class 'number'
# NOT RUN { modello.init(10, 10, 10, 10) ## For modello_numbers x = number(rnorm(10)) y = ssq(x) print(y) print(y$v) modello.close() ## For numerics x = rnorm(10) y = ssq(x) print(y) # }
Run the code above in your browser using DataLab