0

I try to find the extrapolated Y value of a point on a androidplot curve.

For example, I have three points in a array: A (0; 0) B (15; 5) C (30; 0). I displayed in androidplot with smoothing using SplineLineAndPointFormatter.

How can we do to find the Y value of the point N(10; ?)

Look at the example image

Thanks for any help in advance.

Community
  • 1
  • 1
PedroSky
  • 1
  • 3

1 Answers1

0

First off, you should not use that interpolation method because it uses cubic beziers and will plot false data. I posted a full answer in the linked question back in 2014.

Instead you should use the CatmullRomInterpolator. Once you've switched over to that, you can retrieve the interpolated series by invoking CatmullRomInterpolator.interpolate(XYSeries, Params). You can then retrieve N directly from the interpolated series.

Nick
  • 8,181
  • 4
  • 38
  • 63