nEDM Interface

nEDM Experiment

nEDM Interface

Repository

Tutorials


Modules


Classes


Externals


Module exporting some helpful math functions
Source:

Methods

(static) GetNumberParts(x) → {Object}

Returns mantissa, exponent from a float
Parameters:
Name Type Description
x Float
Source:
Returns:
mantissa, exponent
Type
Object

(inner) bs(haystack, needle, comparator, alow, ahigh) → {Number}

binary search function to find an index in an array
Parameters:
Name Type Description
haystack Array
needle Object | Number key being searched for
comparator function
alow Number low guess (index) where the needle is
ahigh Number high guess (index) where the needle is
Source:
Returns:
index when found, otherwise ~low
Type
Number