JCL Help:SumSquareDiffFloatArray
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: SumSquareDiffFloatArray Function
Search in JCL Help
Search in all projects
Summary
Returns the sum of the square of Diff subtracted from each elements value.
Pascal
function SumSquareDiffFloatArray(const B: TDynFloatArray; Diff: Float): Float;
Parameters
Parameters | Description |
const B: TDynFloatArray | The array for which to calculate the sum of the square of diff subtracted from the elements. The array can be empty in which case 0 is returned. |
Return Value
The sum of the square of Diff subtracted from the elements value or 0 if the array is empty.
Description
SumSquareDiffFloatArray returns the sum of the square of Diff subtracted from the the elements value. Thus, it calculates Sqr(B[0] - Diff) + Sqr(B[1] - Diff) + .. + Sqr(B[N-1] - Diff).
About
Unit
Donator
ESB Consultancy
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page