Documentation

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|float

sumXMinusYSquared()

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|float

sumXSquaredMinusYSquared()

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|float

sumXSquaredPlusYSquared()

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|float

getCount()

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
int

numericNotString()

These functions accept only numeric arguments, not even strings which are numeric.

private static numericNotString(mixed $item) : bool
Parameters
$item : mixed
Return values
bool

        
On this page

Search results