ssq: Sum of Squares

Description Usage Arguments Value Author(s) Examples

Description

Sum of square function

ssq = ∑_i x_i^2

Usage

1
2
3
4
5
6
7
## S3 method for class 'modello_number'
ssq(x)

## Default S3 method:
ssq(x)

ssq(x)

Arguments

x

a 'numeric' or a reference object of class 'number'

Value

Returns a 'numeric' or reference object of class 'number'

Author(s)

Filippo Monari

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

modello documentation built on Feb. 2, 2021, 9:06 a.m.

Related to ssq in modello...