Description

The global class implementing the McOMGlobal interface exposing globally useful methods for operating on either McObject instance or VARIANT data.

Remarks

The methods exposed via this class are capable of doing arithmetic and logical operations on numeric data held in either an McObject instance or a VARIANT. The data may be scalar values or shaped as single or multiple dimensioned arrays or vectors. The conversions are very flexible, the major restriction being that arrays of VARIANT must all contain the same type (but not necessarily the same array size) of VARIANT (see example).

Members

Methods
McAbs

Arithmetic unary operator to compute the absolute value of values.

McArrayTemp

Returns a “temporary” McObject of a given type, shaped as an array.

McASin

Arithmetic unary operator to compute ArcSine of values and returns results in radians over the range of minus PI/2 to plus PI/2.

McATan

Arithmetic unary operator to compute ArcTangent of values and returns results in radians over the range of minus PI/2 to plus PI/2.

McBasicStatistics

Computes basic parametric statistics on one or more arrays.

McCos

Arithmetic unary operator to compute the cosine of a variant.

McCStr

Converts C-style escape sequences in a string into the special characters.

McCumulativeSum

Does a cumulative sum of the argument array's values.

McExp

Arithmetic unary operator to compute the exponential of values.

McFromText

Scans a character string for numeric values.

McHistogramStatistics

Computes basic parametric statistics on one or more histograms.

McInterpolateValues

Interpolates values to create a longer or shorter array.

McIsMissingValue

Tests a value or array to see if a value is missing

McLog

Arithmetic unary operator to compute the natural logarithm of values.

McLog10

Arithmetic unary operator to compute the base-10 logarithm of values.

McLookupInList

Searches an array of strings to find those which match a supplied template.

McMax

Returns the maximum element in one or two argument arrays

McMin

Returns the minimum element in one or two argument arrays

McMissingDouble

A value of type Double that is recognized as marking a missing value in arrays

McMissingSingle

A value of type Single that is recognized as marking a missing value in arrays

McObjectTemp

Returns a “temporary” McObject that contains given source data.

McOpAdd

Arithmetic binary operator to add two variants.

McOpAND

Logical binary operator to combine two variants using a logical “and”.

McOpAndBits

Arithmetic binary operator to And the bits of two variants.

McOpAssignSelected

An operation allowing assignment to a sub-array of a Variant or McObject Value.

McOpBitwiseNot

Arithmetic unary operator to complement the bits of a variant holding integral values.

McOpCast

Casts the values in a Variant to another arithmetic type

McOpConcat

Arithmetic binary operator to concatenate two array variants.

McOpConcatConcat

Arithmetic binary operator to concatenate two array variants, extending the overall shape of the left operand.

McOpDiv

Arithmetic binary operator to divide two variants.

McOpEQ

Logical binary operator to compare two variants for equality.

McOpFillIn

Arithmetic binary operator to fill-in concatenate two array variants.

McOpGE

Logical binary operator to compare two variants for “greater or equal”.

McOpGT

Logical binary operator to compare two variants for “greater than”.

McOpLargerOf

Arithmetic binary operator to compute the larger of elements of two variants.

McOpLE

Logical binary operator to compare two variants for “less than or equal”.

McOpLeftShift

Arithmetic binary operator to Left Shift the bits of a variant.

McOpLT

Logical binary operator to compare two variants for “less than”.

McOpMod

Arithmetic binary operator to compute the Modulus between two variants.

McOpMul

Arithmetic binary operator to multiply two variants.

McOpNE

Logical binary operator to compare two variants for non-equality.

McOpNeg

Arithmetic unary operator to negate a variant.

McOpNOT

Logical unary operator to negate the sense of a selector array

McOpOR

Logical binary operator to combine two variants using a logical “or”.

McOpOrBits

Arithmetic binary operator to Or the bits of two variants.

McOpRightShift

Arithmetic binary operator to Right Shift the bits of a variant.

McOpSelect

Selected values from a Variant are returned.

McOpSmallerOf

Arithmetic binary operator to compute the smaller of elements of two variants.

McOpSub

Arithmetic binary operator to subtract two variants.

McOpXorBits

Arithmetic binary operator to Xor the bits of two variants.

McPow

Computes X raised to the Y power for scalar or array X and Y.

McRand

Generates an array of random numbers with values between 0 and 32768

McRankedHistogramValues

Computes basic non-parametric results from ranked values on one or more arrays.

McRankedValues

Computes basic non-parametric results from ranked values on one or more arrays.

McReduce

Reduces one dimension of a multi-dimensional data array by combining all elements along the given dimension using a specified operator.

McSearchString

This function searches a string to find the first occurrence of a sub-string which matches a supplied template string. Alternatively, an option checks for a match between the template and the whole string; used this way, SearchString is a test for equivalent strings.

McSin

Arithmetic unary operator to compute the sine of a variant.

McSort

Sorts an array of numbers or a “list” of strings and returns a selector which will select the elements in sorted order.

McSprintf

Performs a C-style sprintf to format a list of arguments into a string.

McSqrt

Arithmetic unary operator to compute the square root of values.

McSqueezeSelector

Remove negative selector values

McSum

Returns the sum of the elements in one or two argument arrays

McTan

Arithmetic unary operator to compute the tangent of a variant.

McToText

Converts value(s) from a variant into a character string.

McTranspose

Transposes the “rows” and “columns” of a matrix or other data object.

McVectorHistogram

Computes a histogram of the values in an array. The number of bins, the starting value and the size of a bin are user-specified.