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
 2023bSR1: cross-correlation function of 2 signals
 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 - 06/19/2023 :  05:47:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2023b (64-bit) SR1 10.0.5.157
Windows 10 Pro for Workstations 22H2 19045.3086

Greetings!

What Origin tool can I use to find the optimal linear transform parameters (y = kx + b) to match a given pair of signals (see an example below)?



---
Andrey

Edited by - AKazak on 06/19/2023 05:49:08 AM

YimingChen

1593 Posts

Posted - 06/19/2023 :  09:08:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If the x values of the two signals are the same, you can perform linear regression of sig2 to sig1?

James
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/19/2023 :  09:30:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

If the x values of the two signals are the same, you can perform linear regression of sig2 to sig1?

James



Dear James,

X-coordinates are not the same.
In fact the task is to find k and b – the parameters of the linear transformation of the X.

---
Andrey
Go to Top of Page

YimingChen

1593 Posts

Posted - 06/19/2023 :  2:38:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You could try the optimization solver app.
https://www.originlab.com/FileExchange/details.aspx?fid=592

Can you share your data file here?

James
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/20/2023 :  01:50:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

You could try the optimization solver app.
https://www.originlab.com/FileExchange/details.aspx?fid=592

Can you share your data file here?

James



Dear James,

Here your are:
https://my.originlab.com/ftp/forum_and_kbase/Images/2023-06-20.opju

---
Andrey
Go to Top of Page

YimingChen

1593 Posts

Posted - 06/20/2023 :  11:40:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please check the attached project file and the settings of the app. By checking your data, the k value can be set to -1, then just need to find the offset b. Please also check the column formula of col(H).
https://my.originlab.com/ftp/forum_and_kbase/Images/2023-06-20_v1.opju



James
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/20/2023 :  1:02:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

Please check the attached project file and the settings of the app. By checking your data, the k value can be set to -1, then just need to find the offset b. Please also check the column formula of col(H).
https://my.originlab.com/ftp/forum_and_kbase/Images/2023-06-20_v1.opju



James




Dear James,

Is this possible to optimize both parameters k and b?
I realize that k is negative, but not sure that it is equal to -1...

---
Andrey

Edited by - AKazak on 06/20/2023 1:02:28 PM
Go to Top of Page

YimingChen

1593 Posts

Posted - 06/20/2023 :  2:06:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
See the attached project file.

https://my.originlab.com/ftp/forum_and_kbase/Images/2023-06-20_v2.opju

Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/20/2023 :  2:23:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

See the attached project file.

https://my.originlab.com/ftp/forum_and_kbase/Images/2023-06-20_v2.opju




Dear James,

Works perfectly!
Now I see the principle of operation.
Thank you.

BTW, does Origin have the functions similar to those provided by Optimization Solver app?



---
Andrey
Go to Top of Page

YimingChen

1593 Posts

Posted - 06/20/2023 :  3:17:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To my knowledge, Origin doesn't have this functionality.

Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/20/2023 :  11:17:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

To my knowledge, Origin doesn't have this functionality.



Dear James,

Got it.
Thank you.

---
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