BEST CODE TO GET STATISTICS FOR AN ARRAY OR A LIST . . .
I am working on an APP that has a bunch of different ARRAYS of MEASUREMENTS from a bunch of different IMAGES.
The APP needs to be able to CALCULATE and DISPLAY the STATISTICS for each of the ARRAYS.
In a DISCUSSION in MAY-2015, I was directed to
and that works but at some point I was able to use LISTS and CODE for VB.NET that gets the STATISTICS with something like
This was discussed in a DISCUSSION in MAR-2021 but I cannot seem to get the LISTS to show the STATISTICAL TOOLS like I seemed to be able to when I did this
After declaring a LIST in IP10 with something like this
Dim Prog_ListLengths1 As New System.Collections.Generic.List(Of Double)
and then adding my Lengths to the LIST with something like this
'REMEMBER THE LENGTH OF THIS FEATURE Prog_ListLengths1.add _ ( _ sf.Value(eMeasures.RgnLength) _ )
Then I can get the STATS from the LIST with something like this
Debug.Print Prog_ListLengths1.Min Debug.Print Prog_ListLengths1.Max Debug.Print Prog_ListLengths1.Average
I have created and attached a DEMONSTRATION PROJECT in
Array Statistics Project V1A.ipx
that has a DEMO ARRAY, a DEMO LIST, and a determination of a STANDARD DEVIATION using
Dim MyStats As mediacy.IQL.ObjectManager.BASIC_STATISTICS = _ ThisApplication.GlobalTools.McBasicStatistics(MyDemoArray) textBox3.Text = _ "The STANDARD DEVIATION for MyDemoArray is " & Format (MyStats.StdDev,"#,##0.00")
Is there a better way to get the STATISTICS for the DEMO ARRAY or the DEMO LIST?