Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAN not working for interpolation #222

Open
hendrikebbers opened this issue Dec 20, 2023 · 0 comments
Open

NAN not working for interpolation #222

hendrikebbers opened this issue Dec 20, 2023 · 0 comments
Assignees
Milestone

Comments

@hendrikebbers
Copy link
Member

Min/Max/Error values are optional and currently Double.NAN is used for null values when doing interpolation. That ends in an exception:

11:30:06.561 ERROR o.a.c.c.C.[.[.[.[dispatcherServlet]  - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.apache.commons.math3.exception.NotFiniteNumberException: NaN is not a finite number] with root cause
org.apache.commons.math3.exception.NotFiniteNumberException: NaN is not a finite number
	at org.apache.commons.math3.util.MathUtils.checkFinite(MathUtils.java:259)
	at org.apache.commons.math3.analysis.interpolation.LoessInterpolator.checkAllFiniteReal(LoessInterpolator.java:470)
	at org.apache.commons.math3.analysis.interpolation.LoessInterpolator.smooth(LoessInterpolator.java:231)
	at org.apache.commons.math3.analysis.interpolation.LoessInterpolator.smooth(LoessInterpolator.java:394)
	at com.openelements.benchscape.server.store.math.InterpolationUtils.smooth(InterpolationUtils.java:76)
	at com.openelements.benchscape.server.store.endpoints.MeasurementEndpoint.find(MeasurementEndpoint.java:61)
	at jdk.internal.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
@hendrikebbers hendrikebbers self-assigned this Dec 20, 2023
@hendrikebbers hendrikebbers added this to the Milestone 2 milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant