SumSquares
in package
Table of Contents
Methods
- sumSquare() : string|int|float
- SUMSQ.
- sumXMinusYSquared() : string|int|float
- SUMXMY2.
- sumXSquaredMinusYSquared() : string|int|float
- SUMX2MY2.
- sumXSquaredPlusYSquared() : string|int|float
- SUMX2PY2.
- getCount() : int
- numericNotString() : bool
- These functions accept only numeric arguments, not even strings which are numeric.
Methods
sumSquare()
SUMSQ.
public
static sumSquare(mixed ...$args) : string|int|float
SUMSQ returns the sum of the squares of the arguments
Excel Function: SUMSQ(value1[,value2[, ...]])
Parameters
- $args : mixed
-
Data values
Return values
string|int|floatsumXMinusYSquared()
SUMXMY2.
public
static sumXMinusYSquared(array<string|int, mixed> $matrixData1, array<string|int, mixed> $matrixData2) : string|int|float
Parameters
- $matrixData1 : array<string|int, mixed>
-
Matrix #1
- $matrixData2 : array<string|int, mixed>
-
Matrix #2
Return values
string|int|floatsumXSquaredMinusYSquared()
SUMX2MY2.
public
static sumXSquaredMinusYSquared(array<string|int, mixed> $matrixData1, array<string|int, mixed> $matrixData2) : string|int|float
Parameters
- $matrixData1 : array<string|int, mixed>
-
Matrix #1
- $matrixData2 : array<string|int, mixed>
-
Matrix #2
Return values
string|int|floatsumXSquaredPlusYSquared()
SUMX2PY2.
public
static sumXSquaredPlusYSquared(array<string|int, mixed> $matrixData1, array<string|int, mixed> $matrixData2) : string|int|float
Parameters
- $matrixData1 : array<string|int, mixed>
-
Matrix #1
- $matrixData2 : array<string|int, mixed>
-
Matrix #2
Return values
string|int|floatgetCount()
private
static getCount(array<string|int, mixed> $array1, array<string|int, mixed> $array2) : int
Parameters
- $array1 : array<string|int, mixed>
- $array2 : array<string|int, mixed>
Return values
intnumericNotString()
These functions accept only numeric arguments, not even strings which are numeric.
private
static numericNotString(mixed $item) : bool
Parameters
- $item : mixed