Version

Compute Class Members

The following tables list the members exposed by Compute.

Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)AbsOverloaded. Returns the absolute value of x.  
Public Methodstatic (Shared in Visual Basic)AcosOverloaded. Returns the arccosine of x. Arccosine is the inverse of Cos(x) on the range [0 pi].  
Public Methodstatic (Shared in Visual Basic)AppendOverloaded. Appends a series of Vector instances together.  
Public Methodstatic (Shared in Visual Basic)ArgOverloaded. The argument of a x.  
Public Methodstatic (Shared in Visual Basic)AsinOverloaded. Returns the arcsine of x. Arcsine is the inverse of sin(x) on the range [-pi/2 pi/2].  
Public Methodstatic (Shared in Visual Basic)AtanOverloaded. Returns the arctangent of x. Arctangent is the inverse of Tan(x) on [-pi/2 pi/2].  
Public Methodstatic (Shared in Visual Basic)Atan2Overloaded. Returns the four-quadrant arctangent of yx. Atan2 is the Arg{x + yi}.  
Public Methodstatic (Shared in Visual Basic)AverageDeviationOverloaded. Returns the average absolute deviation from the mean of a Vector of data.  
Public Methodstatic (Shared in Visual Basic)AverageIfOverloaded. Returns the average value of the Vectorx where the corresponding BooleanVector is True.  
Public Methodstatic (Shared in Visual Basic)BinOverloaded. Returns a new Vector y, where y[i] = n if x[i] is in the nth bin.  
Public Methodstatic (Shared in Visual Basic)CeilingOverloaded. Returns the smallest integer greater than or equal to x.  
Public Methodstatic (Shared in Visual Basic)CisOverloaded. Returns the exponential function of a purely imaginary number.  
Public Methodstatic (Shared in Visual Basic)CofactorMatrixOverloaded. Returns the (i,j) cofactor of x. If i+j is even, the (i,j) cofactor is equal to the determinant of the (i,j) minor Matrix of x. If i+j is odd, the (i,j) cofactor is the negative determinant of the (i,j) minor Matrix of x.  
Public Methodstatic (Shared in Visual Basic)ConjOverloaded. Returns the Complex conjugate of x.  
Public Methodstatic (Shared in Visual Basic)ConvolveOverloaded. Returns the convolution of a Vector and a ComplexVector.  
Public Methodstatic (Shared in Visual Basic)CorrelationOverloaded. Returns the Pearson's correlation coefficient for two Vector instances.  
Public Methodstatic (Shared in Visual Basic)CosOverloaded. Returns the cosine of x.  
Public Methodstatic (Shared in Visual Basic)CoshOverloaded. Returns the hyperbolic cosine of x.  
Public Methodstatic (Shared in Visual Basic)CovarianceOverloaded. Returns the sample covariance of two Vector instances.  
Public Methodstatic (Shared in Visual Basic)CumProductOverloaded. Returns the cumulative product of the elements of x.  
Public Methodstatic (Shared in Visual Basic)CumSumOverloaded. Returns the cumulative sum of the elements of x.  
Public Methodstatic (Shared in Visual Basic)DerivativeOverloaded. Returns the partial derivative of the Matrix f along the Nth dimension.  
Public Methodstatic (Shared in Visual Basic)DeterminantOverloaded. Returns the determinant of a square Matrixx.  
Public Methodstatic (Shared in Visual Basic)DiagonalOverloaded. Returns the diagonal of an N-dimensional Matrixx.  
Public Methodstatic (Shared in Visual Basic)DifferenceOverloaded. Returns a Vector with the difference of successive values of x.  
Public Methodstatic (Shared in Visual Basic)ExpOverloaded. Returns the number e raised to the power x.  
Public Methodstatic (Shared in Visual Basic)FactorReturns a Vector containing the prime factors of n.  
Public Methodstatic (Shared in Visual Basic)FactorialOverloaded. Returns n factorial.  
Public Methodstatic (Shared in Visual Basic)FindOverloaded. Find takes a BooleanVectorx and returns the indices where x is True.  
Public Methodstatic (Shared in Visual Basic)FloorOverloaded. Returns the largest integer less than or equal to x.  
Public Methodstatic (Shared in Visual Basic)GcdReturns the greatest common divisor of m and n using Euclid's algorithm.  
Public Methodstatic (Shared in Visual Basic)HistogramOverloaded. Returns a histogram of the data in the Vectorx using N evenly-spaced bins.  
Public Methodstatic (Shared in Visual Basic)IdentityMatrixReturns an N-dimensional identity Matrix.  
Public Methodstatic (Shared in Visual Basic)ImaginaryOverloaded. Returns the imaginary part of x.  
Public Methodstatic (Shared in Visual Basic)IndexOverloaded. Returns a Vector of successive indices from 0 to end.  
Public Methodstatic (Shared in Visual Basic)IndexToSubscriptReturns the Matrix subscript that corresponds with the one-dimensional index.  
Public Methodstatic (Shared in Visual Basic)IsEvenReturns True if x is an even number; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsInfOverloaded. Returns True if x is Inf; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsIntOverloaded. Returns True if n is integer valued; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsNaNOverloaded. Returns True if x is NaN; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsNaturalOverloaded. Returns True if n is a natrual number; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsNegInfOverloaded. Returns True if x is -Inf; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsOddReturns True if x is an odd number; False otherwise.  
Public Methodstatic (Shared in Visual Basic)IsPrimeOverloaded. Returns True if n is a prime number; False otherwise.  
Public Methodstatic (Shared in Visual Basic)LcmReturns the least common multiple of m and n.  
Public Methodstatic (Shared in Visual Basic)LineOverloaded. Returns a Vector with evenly spaced elements.  
Public Methodstatic (Shared in Visual Basic)LogOverloaded. Returns the natural (base e) logarithm of x. Log(x) is the inverse of Exp(x).  
Public Methodstatic (Shared in Visual Basic)Log10Overloaded. Returns the base 10 logarithm of x.  
Public Methodstatic (Shared in Visual Basic)Log2Overloaded. Returns the base 2 logarithm of x.  
Public Methodstatic (Shared in Visual Basic)MatrixProductOverloaded. Returns the product of two Matrix instances.  
Public Methodstatic (Shared in Visual Basic)MaxOverloaded. Compares x1 to x2 and returns the largest one.  
Public Methodstatic (Shared in Visual Basic)MeanOverloaded. Returns the mean value of a Vector of observations.  
Public Methodstatic (Shared in Visual Basic)MedianOverloaded. Returns the median value of a Vector of observations.  
Public Methodstatic (Shared in Visual Basic)MinOverloaded. Compares x1 to x2 and returns the smallest one.  
Public Methodstatic (Shared in Visual Basic)MinorMatrixOverloaded. Returns the (i,j) minor Matrix of x. The (i,j) minor Matrix of x is the result of removing the ith row and jth column of x.  
Public Methodstatic (Shared in Visual Basic)ModeOverloaded. Returns the mode of the elements of a Vectorx.  
Public Methodstatic (Shared in Visual Basic)NChooseKReturns n choose k.  
Public Methodstatic (Shared in Visual Basic)NormalDistributionOverloaded. Returns the normal distribution of x with mean mu and standard deviation sigma.  
Public Methodstatic (Shared in Visual Basic)PowOverloaded. Returns x1 raised to the power x2.  
Public Methodstatic (Shared in Visual Basic)PrimesReturns a Vector containing the primes before n.  
Public Methodstatic (Shared in Visual Basic)ProductOverloaded. Returns the product of the elements of a Vector.  
Public Methodstatic (Shared in Visual Basic)RandomOverloaded. Returns a double drawn from the uniform distribution between 0 and 1.  
Public Methodstatic (Shared in Visual Basic)RealOverloaded. Returns the real part of each element of x.  
Public Methodstatic (Shared in Visual Basic)RepeatOverloaded. Appends a Vector to itself N times.  
Public Methodstatic (Shared in Visual Basic)ReverseOverloaded. Returns a Vector with the elements of x in reverse order.  
Public Methodstatic (Shared in Visual Basic)RoundOverloaded. Returns x rounded to the nearest integer.  
Public Methodstatic (Shared in Visual Basic)SetDifferenceOverloaded. Returns a Vector with the elements contained in x1 that are not contained in x2. The result is sorted and unique.  
Public Methodstatic (Shared in Visual Basic)SetIntersectionOverloaded. Returns a Vector with the elements common to both x1 and x2. The result is sorted and unique.  
Public Methodstatic (Shared in Visual Basic)SetUnionOverloaded. Returns a Vector with all elements contained in either x1 or x2. The result is sorted and unique.  
Public Methodstatic (Shared in Visual Basic)SignOverloaded. Returns the sign of x.  
Public Methodstatic (Shared in Visual Basic)SinOverloaded. Returns the sine of x.  
Public Methodstatic (Shared in Visual Basic)SinhOverloaded. Returns the hyperbolic sine of x.  
Public Methodstatic (Shared in Visual Basic)SizeOverloaded. Returns the size of x.  
Public Methodstatic (Shared in Visual Basic)SortOverloaded. Returns a ComplexMatrix with the elements of x in sorted in increasing order along the Nth dimension.  
Public Methodstatic (Shared in Visual Basic)SqrtOverloaded. Returns the square-root of x.  
Public Methodstatic (Shared in Visual Basic)SqueezeOverloaded. Returns a Matrix equivalent to x with unitary dimensions removed.  
Public Methodstatic (Shared in Visual Basic)StandardDeviationOverloaded. Returns the standard deviation of a Vector of observations.  
Public Methodstatic (Shared in Visual Basic)StandardErrorOverloaded. Returns the standard error of the sample mean for a Vector of observations.  
Public Methodstatic (Shared in Visual Basic)StandardizeOverloaded. Returns the z-score of x with respect a distribution of mean mu and standard deviation sigma.  
Public Methodstatic (Shared in Visual Basic)SubscriptToIndexReturns the one-dimensional index that corresponds with the Matrixsubscript.  
Public Methodstatic (Shared in Visual Basic)SumOverloaded. Returns the sum of the elements of a Vector.  
Public Methodstatic (Shared in Visual Basic)SumIfOverloaded. Returns the sum of the elements of the Vectorx where the corresponding BooleanVector is True.  
Public Methodstatic (Shared in Visual Basic)SumProductOverloaded. Returns the sum of the products of the corresponding elements of each Vector in x.  
Public Methodstatic (Shared in Visual Basic)SwitchOverloaded. Returns a Vector equal to x with the dimensions switched.  
Public Methodstatic (Shared in Visual Basic)TanOverloaded. Returns the tangent of x.  
Public Methodstatic (Shared in Visual Basic)TanhOverloaded. Returns the hyperbolic tangent of x.  
Public Methodstatic (Shared in Visual Basic)TraceOverloaded. Returns the trace of the Matrixx. The trace is the sum of the elements of x along the main diagonal.  
Public Methodstatic (Shared in Visual Basic)TransposeOverloaded. Returns a Vector identical to x but with the opposite orientation.  
Public Methodstatic (Shared in Visual Basic)TryAverageIfOverloaded. Returns the average value of the Vectorx where the corresponding BooleanVector is True as the result.  
Public Methodstatic (Shared in Visual Basic)TrySumProductOverloaded. Returns the sum of the products of the corresponding elements of each Vector in x as the result.  
Public Methodstatic (Shared in Visual Basic)UniqueOverloaded. Returns a new Vector with the unique elements of x, sorted in ascending order.  
Public Methodstatic (Shared in Visual Basic)VarianceOverloaded. Returns a Matrix with the sample variance of x along the Nth dimension.  
Public Methodstatic (Shared in Visual Basic)VectorProductOverloaded. Returns the vector product, also known as the dot product or inner product, of two Vector instances.  
Public Methodstatic (Shared in Visual Basic)ZerosOverloaded. Returns a row Vector with N zeros.  
See Also