[MBS] ChartDirector interpolation (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Blob
Next thread: [MBS] [ANN] 19.0pr6


Re: [MBS] NSxx Control question   -   Garth Hjelte
  [MBS] ChartDirector interpolation   -   Lee Badham
   Re: [MBS] ChartDirector interpolation   -   Christian Schmitz
   Re: [MBS] ChartDirector interpolation   -   Kenneth Reed

[MBS] ChartDirector interpolation
Date: 03.01.19 18:10 (Thu, 3 Jan 2019 17:10:04 +0000)
From: Lee Badham
Hi,

If I create a smooth line chart from an arbitrary number points and I able to request the values between those points?

If I have these values

X 0 Y 0
X 50 Y 20
X 100 Y 0

Am i able to ask what the Y value is when X is 80?

Cheers,

Lee

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] ChartDirector interpolation
Date: 03.01.19 18:18 (Thu, 3 Jan 2019 18:18:38 +0100)
From: Christian Schmitz


> Am 03.01.2019 um 18:10 schrieb Lee Badham <<email address removed>>:
>
> Hi,
>
> If I create a smooth line chart from an arbitrary number points and I able to request the values between those points?
>
> If I have these values
>
> X 0 Y 0
> X 50 Y 20
> X 100 Y 0
>
> Am i able to ask what the Y value is when X is 80?

I don't think this is exposed.
Internally ChartDirector probably has this. And CDArrayMBS.lowess function exposes a curve function.

Sincerely
Christian

Re: [MBS] ChartDirector interpolation
Date: 04.01.19 17:26 (Fri, 4 Jan 2019 09:26:34 -0700)
From: Kenneth Reed
You would have to use a regression algorithm to support this. It would be a good idea and source code for linear and nonlinear regression is easy to find. For real complex graphics a neural net approach might work.

> On Jan 3, 2019, at 10:10 AM, Lee Badham <<email address removed>> wrote:
>
> Hi,
>
> If I create a smooth line chart from an arbitrary number points and I able to request the values between those points?
>
> If I have these values
>
> X 0 Y 0
> X 50 Y 20
> X 100 Y 0
>
> Am i able to ask what the Y value is when X is 80?
>
> Cheers,
>
> Lee
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info