MathProbability Class MathEngineering ClassDifference between regular and Array functions: This Class contains two distinct groups of functions that differ in the types of arguments that they will accept.
Dim adblData(1 To 3) As Double Dim varData1 As Variant Dim varData2 As Variant adblData(1) = 65 : adblData(2) = 43 : adblData(3) = 32 varData1 = Array(56,34, 12) varData2 = Array(78, 90, Array(23, 45)) Minimum(varData1, varData2, 87, 54, adblData) = 12See the MathStatistics_Initialize Subroutine and StatVarType Property for more information about which numeric data types are recognized by this group of functions.
Dim avarData(1 To 3) As Variant avarData(1) = 34 : avarData(2) = 12 : avarData(3) = 56 MinimumArray(avarData) = 12Data Types Recognized: By default, the functions in this Class will operate on all of the following numeric and logical data types: Boolean, Byte, Currency, Date, Decimal, Double, Integer, Long, and Single. By setting the StatVarType Property, you can restrict many of the functions in this Class so that they only operate on some of these data types. For example, you can set the StatVarType Property so that most of the statistical functions will ignore Boolean values by making the following Property setting:
StatVarType(vbBoolean) = FalseThe documentation for each function describes whether or not the function uses the StatVarType Property to determine the types of numeric values to recognize.
Function Examples: Many of the examples use the Visual Basic "Array" function, which is a simple way to create a Variant array containing specific values.
Array(12, 34, 56)returns a one-dimensional Variant array containing three elements, and it is equivalent to the following code:
Dim avarArray(1 To 3) As Variant avarArray(1) = 12 avarArray(2) = 34 avarArray(3) = 56v1.5 Addition: This class is new to this version of Entisoft Tools.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.