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
 Populate statGUI from a theme
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 07/23/2021 :  11:37:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
More general question: where do I find the current documentation on DescStats class?

---
Andrey
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/24/2021 :  2:23:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/24/2021 :  11:40:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
    Go to Top of Page

    cpyang

    USA
    1406 Posts

    Posted - 07/25/2021 :  12:19:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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
    Go to Top of Page

    AKazak

    Russia
    1205 Posts

    Posted - 07/25/2021 :  4:32:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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
    Go to Top of Page

    cpyang

    USA
    1406 Posts

    Posted - 07/25/2021 :  8:35:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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
    Go to Top of Page

    AKazak

    Russia
    1205 Posts

    Posted - 07/25/2021 :  11:32:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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
    Go to Top of Page

    minimax

    357 Posts

    Posted - 07/25/2021 :  11:45:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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
    
    Go to Top of Page

    AKazak

    Russia
    1205 Posts

    Posted - 07/26/2021 :  03:14:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    I see.
    What are nVal and strVal in general?

    ---
    Andrey
    Go to Top of Page

    minimax

    357 Posts

    Posted - 07/26/2021 :  04:18:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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



    Go to Top of Page

    AKazak

    Russia
    1205 Posts

    Posted - 07/30/2021 :  12:03:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
    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
    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