Closed ggalmazor closed 9 months ago
It looks good for me to merge your PR, is it ok for you?
Sorry, @capsuleman , I've been super busy with work this week. Let's merge it a roll out a 0.1.0
version
Alright, it's done!
The package is available now at https://jitpack.io/#ggalmazor/lt_downsampling_java8/0.1.0
No problem! Thank you again for your help, you rock! ⭐
Fixes #23
Problem to be solved:
BigDecimal
is not an optimal solution for large data series, causing excessive memory consumption. Better alternatives can be used without losing precision.Point
, which is a concrete class, and they are bound to its internal types.In this PR:
Point
fromBigDecimal
toDouble
Point
factory to acceptNumber
objects for maximum compatibilityPoint
class toDoublePoint
and extract its interface intoPoint
DoublePoint
objects (add
,subtract
,half
) toPoint
and make staticx
andy
values instead of relying on equality.equals
andhashCode
everywhere. This was only needed for the tests.