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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 how to define Dataset for stat.DS.median

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
feldpausch Posted - 03/13/2003 : 08:56:28 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 03/13/2003 : 09:18:28 AM
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.


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000