PhosKinTime-Vis TypeScript API
PhosKinTime-Vis TypeScript API / transforms/stats / sortedFinite
Function: sortedFinite()¶
sortedFinite(
xs):Float64Array
Defined in: src/lib/transforms/stats.ts:30
The finite values in ascending order: the same array finite(xs).sort((a, b) => a - b) gives,
element for element, including the order of -0 and +0 (equal for the comparator, so a stable
sort keeps them in input order; a typed-array sort puts -0 first, so the zero block is
rewritten in input order). About 10× faster than the comparator sort.
Parameters¶
xs¶
ArrayLike\<number>
Returns¶
Float64Array