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
 Origin Forum
 Descriptive Statistics on Matrix Objects

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
AKazak Posted - 08/13/2021 : 4:41:30 PM
OriginPro 2022 (64-bit) Beta2 9.9.0.105
Windows 7 SP1 x64

Greetings!

1) How do I calculate descriptive statistics on matrix objects in a way similar to that of columns?
2) What is the proper way to define and calculate a custom function returning a scalar value (vector) from each matrix object? For example, (max-min)/stdev?

Thank you.

---
Andrey
3   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 08/14/2021 : 04:13:14 AM
Dear Snow,

Got it!
Thank you.

I will test and report in case of issues.

---
Andrey
snowli Posted - 08/13/2021 : 5:38:48 PM
Try this in Set Column Values supposing 1st column is object number.


function double test(int nObject) {
range rmat = [MBook1]MSheet1!$(nObject);
stats rmat;
return (stats.max-stats.min)/stats.sd
}

Thanks, Snow
snowli Posted - 08/13/2021 : 5:26:21 PM
Was 1 already discussed in https://my.originlab.com/forum/topic.asp?whichpage=1&TOPIC_ID=46963#70545

Regarding to 2, I don't see tool for it but you can run
stats; //do stats on active object
stats.= //see what quantities we created.
stats.max=;
stats.min=;
stats.sd=
(stats.max-stats.min)/stats.sd=;

Thanks, Snow

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