Show contents 

Express > Express Assembly Interfaces > IEaxStatistics > IEaxStatistics.AllStatistics

IEaxStatistics.AllStatistics

Syntax

AllStatistics: ITsStatisticsTree;

Description

The AllStatistics property returns all the summary statistics.

Comments

Calculated summary statistics are returned by the IEaxStatistics.Statistics property.

Example

The form, that contains the following components, is required to execute an example:

Add links to system assemblies: Collection, Transform.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    EaxStat: IEaxStatistics;
    Tree: ITsStatisticsTree;
    i: integer;
    Nodes: ITreeListNodes;
    StatNode, ParentNode: ITreeListNode;
    HashT: IHashtable;
Begin
    EaxStat := UiErAnalyzer1.ErAnalyzer.Statistics;
    // Exclude part of statistics from tree plotting
    EaxStat.StatisticsVisible(TsStatisticsType.Skew) := False;
    EaxStat.StatisticsVisible(TsStatisticsType.Kurt) := False;
    EaxStat.CustomStatisticsVisible(EaxCustomStatisticsType.Scale) := False;

    // Get statistics
    Tree := EaxStat.AllStatistics;
    // Clear component for displaying statistics tree
    Nodes := TreeList1.Nodes;
    Nodes.Clear;
    // Plot tree
    If Tree = Null Then
        Return;
    End If;
    HashT := New Hashtable.Create;
    For i := 0 To Tree.Count - 1 Do
        ParentNode := Null;
        If Tree.ParentNode(i) <> -1 Then
            ParentNode := HashT(Tree.ParentNode(i));
        End If;

        StatNode := Nodes.AddChild(ParentNode, Tree.Name(i));
        If Tree.Type(i) <> TsStatisticsTreeNodeType.Category Then
            StatNode.ColumnText(1) := Tree.Value(i);
        End If;
        StatNode.Data := i;
        HashT(i) := StatNode;
    End For;
    HashT.Clear;
    Nodes.TreeControl.InnerRoot.Expand(True);
End Sub Button1OnClick;

When example is executed, the tree of summary statistics, calculated for the data range and selected in the LanerBox1, is displayed in the treeListNet1.

See also:

IEaxStatistics