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