The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Interpolating gaps in the data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 05/19/2022 :  09:28:28 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2022b (64-bit) SR1 9.9.5.167
Windows 7 Pro SP1 x64

Greetings!

I want to linearly interpolate the gaps by using only the end points, but not the whole XY range?


Is there a nice GUI function for doing this?
Or LT is the only solution?

Thank you.

---
Andrey

Edited by - AKazak on 05/19/2022 09:28:48 AM

ChaoC

USA
165 Posts

Posted - 05/19/2022 :  09:51:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

Can you try Analysis|Mathematics|Interpolate/Extrapolate Y from X?



Chao
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/19/2022 :  10:15:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by ChaoC

Hi Andrey,

Can you try Analysis|Mathematics|Interpolate/Extrapolate Y from X?



Chao



Dear Chao,

Thank you for the suggestion.
This seems as a semi-manual solution and doesn't work if a column contains several gaps.

---
Andrey
Go to Top of Page

snowli

USA
1379 Posts

Posted - 05/19/2022 :  12:16:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

When doing Analysis: Mathematics: Interpolate/Extrapolate using Linear method, it does use two neighbouring points to do linear interpolate for many X with that segment.
So u should be able to directly select whole B and to interpolateion. U can set output to be input xy so those empty cells in B will be filled.

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/19/2022 :  12:56:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

Hi Andrey,

When doing Analysis: Mathematics: Interpolate/Extrapolate using Linear method, it does use two neighbouring points to do linear interpolate for many X with that segment.
So u should be able to directly select whole B and to interpolateion. U can set output to be input xy so those empty cells in B will be filled.

Thanks, Snow



Dear Snow,

This was exactly that I was looking for!
Can you add this valuable information to the Analysis:Mathematics:Interpolate/Extrapolate help page, please?

---
Andrey
Go to Top of Page

snowli

USA
1379 Posts

Posted - 05/19/2022 :  1:41:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

Could you let me know what to improve in doc?

On Help page of it https://www.originlab.com/doc/Origin-Help/Math-Inter-Extrapolate?f=dl, it does say "Linear interpolation is a fast method of estimating a data point by constructing a line between two neighboring data points"

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/19/2022 :  2:37:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

Hi Andrey,

Could you let me know what to improve in doc?

On Help page of it https://www.originlab.com/doc/Origin-Help/Math-Inter-Extrapolate?f=dl, it does say "Linear interpolation is a fast method of estimating a data point by constructing a line between two neighboring data points"

Thanks, Snow



Dear Snow,

It is currently very clear.
I see nothing to improve.

---
Andrey
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/20/2022 :  02:45:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried to use Analysis:Mathematics:Interpolate/Extrapolate, but it turned out that the function works well if X has fixed positive step (that is proportionaly growing).

The following example shows that the function does not give the correct results:


Is there any workaround?

---
Andrey
Go to Top of Page

snowli

USA
1379 Posts

Posted - 05/20/2022 :  10:18:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

We have Analysis: Mathematics: Trace Interpolation for this but it will evenly space the x values.

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/20/2022 :  11:04:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

Hi Andrey,

We have Analysis: Mathematics: Trace Interpolation for this but it will evenly space the x values.

Thanks, Snow



Dear Snow,

Analysis: Mathematics: Trace Interpolation seems to be a nice tool, but it still doesn't help me doing my task.

For now I made an LT script to do the desired interpolation.

---
Andrey
Go to Top of Page

snowli

USA
1379 Posts

Posted - 05/20/2022 :  11:59:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I created ORG-25270 for this to see if we should improve it.

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/21/2022 :  01:51:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

I created ORG-25270 for this to see if we should improve it.

Thanks, Snow



I would find the effort to test the improvement in the upcoming beta version.

---
Andrey
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000