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 for Programming
 LabTalk Forum
 stat.DS.mean and stat.DS.sd
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jvalenti

USA
Posts

Posted - 11/23/2004 :  10:12:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I'm new to LabTalk and would like to write a simple script where I can return the mean and standard deviation of a set of data that I've previously selected using the "data selector" feature in Origin's graph window. I think I need to use the stat.DS.mean and stat.DS.sd objects but I don't know how to implement them. Any suggestions?

Mike Buess

USA
3037 Posts

Posted - 11/23/2004 :  11:04:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
After you set the markers and press enter just run this script...

sum(%C);
type -a "mean=$(sum.mean), sd=$(sum.sd), N=$(sum.n)";

...The sum() function also produces the values sum.min, sum.max and sum.total.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 11/23/2004 11:11:26 AM
Go to Top of Page

jvalenti

USA
Posts

Posted - 11/23/2004 :  11:12:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks!
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