Class Int64Map
- Namespace
- SearchAThing.Sci
- Assembly
- netcore-sci.dll
Scan a given domain of doubles, determine the midpoint ( Origin ) and using the given tolerance it tests for integrity in conversion between values from double to Int64 and vice-versa. It can generate a Int64MapExceptionRange.
public class Int64Map
- Inheritance
-
Int64Map
- Inherited Members
Constructors
Int64Map(double, IEnumerable<double>, bool)
use small tolerance to avoid lost of precision Note: too small tolerance can generate Int64MapExceptionRange
public Int64Map(double tol, IEnumerable<double> domainValues, bool selfCheckTolerance = true)
Parameters
tol
doubledomainValues
IEnumerable<double>selfCheckTolerance
bool
Properties
Origin
public double Origin { get; }
Property Value
Tolerance
public double Tolerance { get; }
Property Value
Methods
FromInt64(long)
public double FromInt64(long x)
Parameters
x
long
Returns
ToInt64(double)
public long ToInt64(double x)
Parameters
x
double