Author |
Topic  |
|
AKazak
Russia
1205 Posts |
Posted - 07/23/2021 : 11:37:14 AM
|
OriginPro 2021b (64-bit) SR2 9.8.5.212 Windows 10 21H1 x64
Greetings!
I code Descriptive Stats on Columns and got interested in importing the settings from the existing theme instead of manually setting the statGUI tree.
Is this possible?
Thank you.
--- Andrey |
|
AKazak
Russia
1205 Posts |
Posted - 07/23/2021 : 12:08:04 PM
|
More general question: where do I find the current documentation on DescStats class?
--- Andrey |
 |
|
cpyang
USA
1406 Posts |
Posted - 07/24/2021 : 2:23:53 PM
|
I assume you are already looking at this page?
https://www.originlab.com/doc/X-Function/ref/xop
There is the theme option in the XOP, so maybe you can show the essence of your code so we can see how to work theme into it?
CP
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/24/2021 : 11:40:38 PM
|
quote: Originally posted by cpyang
I assume you are already looking at this page?
https://www.originlab.com/doc/X-Function/ref/xop
There is the theme option in the XOP, so maybe you can show the essence of your code so we can see how to work theme into it?
CP
Sure, I studied the theme options in xop. However to manually tune the corresponding tree I need to have a full list of its branches and leaves. Can you share a description of trees for the following classes, please?
DescStats: Statistics on Columns DescStats_1: Statistics on Rows NormalityTest: Normality Test ANOVAOneWay: One-Way ANOVA ANOVATwoWay: Two-Way ANOVA ANOVAOneWayRM: One-Way Repeated Measures ANOVA ANOVATwoWayRM: Two-Way Repeated Measures ANOVA FitLinear: Fit Linear FitPolynomial:Fit Polynomial MR: Multilple Linear Regression FitNL: Nonlinear Curve Fit ROCCurve: ROC Curve
--- Andrey |
Edited by - AKazak on 07/24/2021 11:41:05 PM |
 |
|
cpyang
USA
1406 Posts |
Posted - 07/25/2021 : 12:19:05 PM
|
The tree is what you see in the GUI, so to see the actual tree node name, just dump it with tr.=;
Like
tree statGUI;
xop execute:=init classname:=DescStats iotrgui:=statGUI;
statGUI.=
We have never documented such details because nobody needed this before. typically the few people who needed this will use such a dump, similar to the wks.= dump, as this goes for all objects in labtalk.
CP
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/25/2021 : 4:32:41 PM
|
quote: Originally posted by cpyang
The tree is what you see in the GUI, so to see the actual tree node name, just dump it with tr.=;
Like
tree statGUI;
xop execute:=init classname:=DescStats iotrgui:=statGUI;
statGUI.=
We have never documented such details because nobody needed this before. typically the few people who needed this will use such a dump, similar to the wks.= dump, as this goes for all objects in labtalk.
CP
Got it! How do I check data types (int, double, string, or something else) of the tree leaves?
--- Andrey |
 |
|
cpyang
USA
1406 Posts |
Posted - 07/25/2021 : 8:35:19 PM
|
Tree nodes don't have type, you will need to look at the GUI and decide. A node can be accessed by either nVal or strVal, as internally they are just xml nodes and basically text.
CP
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/25/2021 : 11:32:54 PM
|
quote: Originally posted by cpyang
Tree nodes don't have type, you will need to look at the GUI and decide. A node can be accessed by either nVal or strVal, as internally they are just xml nodes and basically text.
CP
Got it! Can you share few examples of accessing nodes by either nVal or strVal, please?
--- Andrey |
 |
|
minimax
357 Posts |
Posted - 07/25/2021 : 11:45:51 PM
|
Hi
The examples on xop page shows some cases of nVal or strVal access. https://www.originlab.com/doc/X-Function/ref/xop
Basically it is the same a normal numeric/string variables.
PS, there is a special usage: .use attribute, which refers to combo option on GUI in some cases.
like
statGUI.GUI.InputData.Range1.F$=Col(gender); //string value access
statGUI.GUI.Quantities.quantiles.iMax=1; //numeric value access
xop execute:=init classname:=ANOVAOneWay iotrgui:=onewayGUI;
// It is an attribute in LT and needs to access by a special node ".Use".
onewayGUI.GUI.InputData.Use = 1; //0 for Indexed, 1 for Raw
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/26/2021 : 03:14:07 AM
|
I see. What are nVal and strVal in general?
--- Andrey |
 |
|
minimax
357 Posts |
|
AKazak
Russia
1205 Posts |
Posted - 07/30/2021 : 12:03:38 AM
|
quote: Originally posted by minimax
In above LT context, it is just an abbreviation, no particular meaning.
nVal is short for numeric value. strVal is short for string value.
It is more an OC term in general: https://www.originlab.com/doc/OriginC/ref/PropertyNode
Got it! Thank you for helping me.
--- Andrey |
 |
|
|
Topic  |
|