Post Reply 
Get Statistics results in a program...
03-23-2015, 02:05 PM
Post: #1
Get Statistics results in a program...
hi,
why I get error with this code?
Code:

myvar:= Statistic_2var.MeanY;
but not with
Code:

myvar:= Statistic_2var.Resid();
// or myvar:= Resid();
?
if I type "Statistic_2var.MeanY" in CAS or Home it's ok, but I get error in a program...
where I'm wrong?

thank you in advance,
Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
03-23-2015, 04:47 PM
Post: #2
RE: Get Statistics results in a program...
Mine reboots if I eval Statistic_2var.MeanY in home

My website: erwin.ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
10-09-2015, 07:44 AM (This post was last modified: 10-09-2015 08:02 AM by StephenG1CMZ.)
Post: #3
RE: Get Statistics results in a program...
This is probably obvious, but what I have found so far on the Android emulator:

The App is statistics with an s: Statistics_2Var
If you select the variables from the toolbox/App/Statistics_2Var,
Resid is listed but MeanY is not.

Suggesting that perhaps that variable is not defined in that App. I also tried1Var: same .

But typing it in at Home gives Error: Insufficient data (I haven't set any up), meaning Home recognises MeanY.

Update: But then I re-edited my program changing 1Var.MeanY back to 2Var.MeanY - and now it compiles! So: Did I have a typo earlier? Or did the Home evaluation change something?
Code:

EXPORT TR()
BEGIN
 PRINT(Statistics_2Var.MeanY);
 PRINT(Statistics_2Var.Do2VStats());
 
 WAIT;
END;

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
11-12-2015, 01:41 AM
Post: #4
RE: Get Statistics results in a program...
You may have ran into the same problem I ran into. It depends on the mode type used. In any case you can review what I posted as a possible work around. Please review the following thread.

http://www.hpmuseum.org/forum/thread-5111.html

Michael
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)