NPlot Documented Class Library

TradingDateTimeAxis.SparseWorldRemap Method 

[This is preliminary documentation and subject to change.]

Remap a world coordinate into a "virtual" world, where non-trading dates and times are collapsed.

protected double SparseWorldRemap(
   double coord
);

Parameters

coord
world coordinate to transform.

Return Value

equivalent virtual world coordinate.

Remarks

This code works under asumption that there are exactly 24*60*60 seconds in a day This is strictly speaking not correct but apparently .NET 2.0 does not count leap seconds. Luckilly, Ticks == 0 =~= 0001-01-01T00:00 =~= Monday First tried a version fully on floating point arithmetic, but failed hopelessly due to rounding errors.

See Also

TradingDateTimeAxis Class | NPlot Namespace