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
 how to define Dataset for stat.DS.median
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

feldpausch

Germany
2 Posts

Posted - 03/13/2003 :  08:56:28 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
i've got a problem in using LabTalks "stat.DS.median" object.

How to define the used Dataset (e.g. some rows in one colum) on which stat.DS.median works on?

Simple question? => thanks for your help!

best regards, Philipp Feldpausch

easwar

USA
1965 Posts

Posted - 03/13/2003 :  09:18:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Philipp,

Try this:

stat.ds.data$=data1_b; // point to dataset
stat.ds(); // get stats
median = stat.ds.median; // median value

If you want to operate only on a subset of rows of your dataset, then you can set begin and end for dataset temporarily as below:

set data1_b -bs 1; // temporarily set begin to row 1
set data1_b -es 5; // temporarily set end to row 5
stat.ds.data$=data1_b;
stat.ds();
stat.ds.median=;

Easwar
OriginLab.

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