CDMA client API  3.1.0
CDMA core library
org.gumtree.data.math.EMath Class Reference

The EMath is the Error Propagation Math Librar. More...

List of all members.

Static Public Member Functions

static EData< IArrayadd (final IArray arrA, final IArray arrB, final IArray varA, final IArray varB) throws ShapeNotMatchException
static EData< IArrayadd (final IArray arrA, final double valB, final IArray varA, final double varB)
static EData< IArrayeltMultiply (final IArray arrA, final IArray arrB, final IArray varA, final IArray varB) throws ShapeNotMatchException
static EData< Double > scalarMultiply (final double valX, final double valY, final double varX, final double varY)
static EData< Double > scalarAdd (final double valX, final double valY, final double varX, final double varY)
static EData< Double > scalarDivide (final double valX, final double valY, final double varX, final double varY)
static EData< IArrayscale (final IArray arrA, final double valB, final IArray varA, final double varB) throws ShapeNotMatchException
static EData< Double > vecDot (final IArray arrA, final IArray arrB, final IArray varA, final IArray varB) throws ShapeNotMatchException
static EData< IArrayeltInverse (final IArray arrA, final IArray varA) throws DivideByZeroException, ShapeNotMatchException
static EData< IArrayeltInverseSkipZero (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< IArraymatMultiply (final IArray array1, final IArray array2, final IArray variance1, final IArray variance2) throws ShapeNotMatchException
static EData< IArraymatInverse (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraysqrt (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > sqrt (final double value, final double variance)
static EData< IArrayexp (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > exp (final double valA, final double varA)
static EData< IArrayln (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > ln (final double valA, final double varA)
static EData< IArraylog10 (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > log10 (final double valA, final double varA)
static EData< IArraysin (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > sin (final double valA, final double varA)
static EData< IArrayasin (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > asin (final double valA, final double varA)
static EData< IArraycos (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > cos (final double valA, final double varA)
static EData< IArrayacos (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > acos (final double valA, final double varA)
static EData< IArraytan (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > tan (final double valA, final double varA)
static EData< IArrayatan (final IArray arrA, final IArray varA) throws ShapeNotMatchException
static EData< Double > atan (final double valA, final double varA)
static EData< IArraypower (final IArray arrA, final double power, final IArray varA) throws ShapeNotMatchException
static EData< Double > power (final double valA, final double power, final double varA)
static EData< Double > powerSum (final IArray arrA, final IArray axis, final int dimn, final double power, final IArray varA, final IArray varAxis) throws ShapeNotMatchException
static EData< Double > sum (final IArray arrA, final IArray varA)
static EData< IArraysumForDimension (final IArray arrA, final int dimension, final IArray varA) throws ShapeNotMatchException
static EData< IArrayenclosedSumForDimension (final IArray arrA, final int dimension, final IArray varA) throws ShapeNotMatchException
static EData< IArrayintegrateDimension (final IArray arrA, final int dimension, final IArray varA) throws ShapeNotMatchException
static IArray integrateDimension (final IArray array, final int dimension, final boolean isVariance) throws ShapeNotMatchException
static EData< IArrayenclosedIntegrateDimension (final IArray arrA, final int dimension, final IArray varA) throws ShapeNotMatchException
static EData< IArraytoAdd (final IArray array1, final IArray array2, final IArray variance1, final IArray variance2) throws ShapeNotMatchException
static EData< IArraytoAdd (final IArray array, final double value, final IArray variance, final double valueVariance)
static EData< IArraytoEltMultiply (final IArray array1, final IArray array2, final IArray variance1, final IArray variance2) throws ShapeNotMatchException
static EData< IArraytoScale (final IArray array, final double value, final IArray variance, final double valueVariance) throws ShapeNotMatchException
static EData< IArraytoEltInverse (final IArray array, final IArray variance) throws DivideByZeroException, ShapeNotMatchException
static EData< IArraytoEltInverseSkipZero (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoSqrt (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoExp (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoLn (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoLog10 (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoSin (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoAsin (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoCos (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoAcos (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoTan (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoAtan (final IArray array, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoPower (final IArray array, final double power, final IArray variance) throws ShapeNotMatchException
static EData< IArraytoEltDivideSkipZero (final IArray array1, final IArray array2, final IArray variance1, final IArray variance2) throws ShapeNotMatchException

Detailed Description

The EMath is the Error Propagation Math Librar.

It acts upon GMD IArray structures for data and associated variance, and carries the uncertainty through IArray calculations. This library operates under the presumption of independent random variables, that is, all covariance are zero.

The return types of the math calculation are mostly in EData type with result and variance.

See also:
EData (fixed 12/2008)

Member Function Documentation

static EData<IArray> org.gumtree.data.math.EMath.acos ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the arc cosine value of each element in the IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.acos ( final double  valA,
final double  varA 
) [static]

Calculate arc cosine of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.add ( final IArray  arrA,
final IArray  arrB,
final IArray  varA,
final IArray  varB 
) throws ShapeNotMatchException [static]

IArray adding with uncertainty. The rank of array1 must be greater than or equal to that of array2.

Parameters:
arrAin IArray type
arrBin IArray type
varAin IArray type
varBin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.add ( final IArray  arrA,
final double  valB,
final IArray  varA,
final double  varB 
) [static]

Add a value with variance to an IArray element-wisely.

Parameters:
arrAin IArray type
valBa double value
varAin IArray type
varBa double value
Returns:
EData with IArray type
static EData<IArray> org.gumtree.data.math.EMath.asin ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the arc sine value of each element in the IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.asin ( final double  valA,
final double  varA 
) [static]

Calculate arcsine of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.atan ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the arc trigonometric value of each elements in the IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type object
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.atan ( final double  valA,
final double  varA 
) [static]

Calculate arc trigonometric of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.cos ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the cosine value of each element in the IArray.

Parameters:
arrAIArray object
varAIArray object
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchExceptionshape not match
static EData<Double> org.gumtree.data.math.EMath.cos ( final double  valA,
final double  varA 
) [static]

Calculate cosine of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.eltInverse ( final IArray  arrA,
final IArray  varA 
) throws DivideByZeroException, ShapeNotMatchException [static]

Calculate an element-wise reciprocal on each IArray element Rij.. = 1 / Aij.. A zero value in the array will throw a DivideByZeroException.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
DivideByZeroException
static EData<IArray> org.gumtree.data.math.EMath.eltInverseSkipZero ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate element-wise reciprocals for each IArray element except skip zero values. If Aij.. = 0, Rij.. = 0 Otherwise Rij.. = 1 / Aij..

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.eltMultiply ( final IArray  arrA,
final IArray  arrB,
final IArray  varA,
final IArray  varB 
) throws ShapeNotMatchException [static]

Do element-wise multiply on two IArray objects. The rank of array1 must be greater than or equal to that of array2. Rij = Aij * Bij.

Parameters:
arrAin IArray type
arrBin IArray type
varAin IArray type
varBin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException

TODO: Check. Currently, if one variance parameter missing, that one treated as zero. if both missing, null propagated

static EData<IArray> org.gumtree.data.math.EMath.enclosedIntegrateDimension ( final IArray  arrA,
final int  dimension,
final IArray  varA 
) throws ShapeNotMatchException [static]

Integrate on given dimension. The result array will be one dimensional reduced from the given array.

Parameters:
arrAthe signal in CDMA IArray type
dimensiona primary integer
varAthe variance in CDMA IArray type
Returns:
EData in IArray
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.enclosedSumForDimension ( final IArray  arrA,
final int  dimension,
final IArray  varA 
) throws ShapeNotMatchException [static]

Do sum calculation for every slice of the array on a dimension. The result will be a one dimensional IArray.

Parameters:
arrAin IArray type
dimensionInteger value
varAin IArray type
Returns:
EData with IArray
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.exp ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the e raised to the power of double values in the IArray element-wisely.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.exp ( final double  valA,
final double  varA 
) [static]

Calculate the exponential of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.integrateDimension ( final IArray  arrA,
final int  dimension,
final IArray  varA 
) throws ShapeNotMatchException [static]

Integrate on given dimension. The result array will be one dimensional reduced from the given array.

Parameters:
arrAthe signal in CDMA IArray type
dimensiona primary integer
varAthe variance in CDMA IArray type
Returns:
EData in IArray
Exceptions:
ShapeNotMatchException
static IArray org.gumtree.data.math.EMath.integrateDimension ( final IArray  array,
final int  dimension,
final boolean  isVariance 
) throws ShapeNotMatchException [static]

Integrate on given dimension. The result array will be one dimensional reduced from the given array.

Parameters:
dimensioninteger value
arrayIArray object
isVariancetrue if the array serves as variance
Returns:
new IArray object
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.ln ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate an element-wise natural logarithm (base e) of values of an IArray.

Parameters:
arrAin IArray
varAin IArray
Returns:
EData of IArray
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.ln ( final double  valA,
final double  varA 
) [static]

Calculate logarithm of a double value with a e base.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.log10 ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate an element-wise logarithm (base 10) of values of an IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.log10 ( final double  valA,
final double  varA 
) [static]

Calculate logarithm of a double value with a 10 base.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.matInverse ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]
Deprecated:
not implemented yet
Parameters:
arrayIArray object
varianceIArray object
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchExceptionincomplete
static EData<IArray> org.gumtree.data.math.EMath.matMultiply ( final IArray  array1,
final IArray  array2,
final IArray  variance1,
final IArray  variance2 
) throws ShapeNotMatchException [static]

Multiply two matrices (2D-IArray) The two matrices must abide by matrix multiplication dimension requirements. X *

Parameters:
array1in IArray type
array2in IArray type
variance1in IArray type
variance2in IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchExceptionincomplete
static EData<IArray> org.gumtree.data.math.EMath.power ( final IArray  arrA,
final double  power,
final IArray  varA 
) throws ShapeNotMatchException [static]

Do an element-wise power calculation of the array. Yij = Xij ^ power.

Parameters:
arrAin IArray type
powera double value
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.power ( final double  valA,
final double  power,
final double  varA 
) [static]

Calculate the power of a double value with error propagation.

Parameters:
valAdouble value
powerdouble value
varAdouble value
Returns:
EData wrapper
static EData<Double> org.gumtree.data.math.EMath.powerSum ( final IArray  arrA,
final IArray  axis,
final int  dimn,
final double  power,
final IArray  varA,
final IArray  varAxis 
) throws ShapeNotMatchException [static]

Do a power-sum on a certain dimension. A power-sum will raise all element of the array to a certain power, then do a sum on a certain dimension, and put weight on the result.

Parameters:
arrAin IArray type
axisweight on the dimension
dimnthe index of the dimension
powera double value
varAin IArray type
varAxisvariance of the weight
Returns:
EData with Double type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.scalarAdd ( final double  valX,
final double  valY,
final double  varX,
final double  varY 
) [static]

Add two double values with error propagation.

Parameters:
valXdouble value
valYdouble value
varXdouble value
varYdouble value
Returns:
EData data wrapper
static EData<Double> org.gumtree.data.math.EMath.scalarDivide ( final double  valX,
final double  valY,
final double  varX,
final double  varY 
) [static]

Divide a double value with a divisor with error propagation.

Parameters:
valXdouble value
valYdouble value
varXdouble value
varYdouble value
Returns:
EData data wrapper
static EData<Double> org.gumtree.data.math.EMath.scalarMultiply ( final double  valX,
final double  valY,
final double  varX,
final double  varY 
) [static]

Multiply two double values with error propagation.

Parameters:
valXdouble value
valYdouble value
varXdouble value
varYdouble value
Returns:
EData data wrapper
static EData<IArray> org.gumtree.data.math.EMath.scale ( final IArray  arrA,
final double  valB,
final IArray  varA,
final double  varB 
) throws ShapeNotMatchException [static]

Scale the array with a double value element-wisely.

Parameters:
arrAin IArray type
valBdouble value
varAin IArray type
varBa double value
Returns:
EData type for IArray
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.sin ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the sine value of each element in the IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.sin ( final double  valA,
final double  varA 
) [static]

Calculate sine of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.sqrt ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the square root of each element of an IArray. Create a new object with the result of the calculation.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.sqrt ( final double  value,
final double  variance 
) [static]

Calculate the square root of a double value with error propagation.

Parameters:
valuedouble value
variancedouble value
Returns:
EData wrapper
static EData<Double> org.gumtree.data.math.EMath.sum ( final IArray  arrA,
final IArray  varA 
) [static]

Calculate the sum on the IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type
static EData<IArray> org.gumtree.data.math.EMath.sumForDimension ( final IArray  arrA,
final int  dimension,
final IArray  varA 
) throws ShapeNotMatchException [static]

Do sum calculation for every slice of the array on a dimension. The result will be a one dimensional IArray.

Parameters:
arrAin IArray type
dimensionInteger value
varAin IArray type
Returns:
EData with IArray
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.tan ( final IArray  arrA,
final IArray  varA 
) throws ShapeNotMatchException [static]

Calculate the trigonometric value of each elements in the IArray.

Parameters:
arrAin IArray type
varAin IArray type
Returns:
EData with IArray type object
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.tan ( final double  valA,
final double  varA 
) [static]

Calculate tangent of a double value with error propagation.

Parameters:
valAdouble value
varAdouble value
Returns:
EData wrapper
static EData<IArray> org.gumtree.data.math.EMath.toAcos ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the arc cosine value of each elements in the IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toAdd ( final IArray  array1,
final IArray  array2,
final IArray  variance1,
final IArray  variance2 
) throws ShapeNotMatchException [static]

IArray adding with uncertainty. The rank of array1 must be greater than or equal to that of array2.

Parameters:
array1in IArray type
array2in IArray type
variance1in IArray type
variance2in IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toAdd ( final IArray  array,
final double  value,
final IArray  variance,
final double  valueVariance 
) [static]

Add a value with variance to an IArray element-wisely. Note here the two arrays are not necessary to have the same size. It will finish at the short length.

Parameters:
arrayin IArray type
valuea double value
variancein IArray type
valueVariancea double value
Returns:
EData with IArray type
static EData<IArray> org.gumtree.data.math.EMath.toAsin ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the arc sine value of each elements in the IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toAtan ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the arc trigonometric value of each elements in the IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type object
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toCos ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the cosine value of each elements in the IArray.

Parameters:
arrayIArray object
varianceIArray object
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toEltDivideSkipZero ( final IArray  array1,
final IArray  array2,
final IArray  variance1,
final IArray  variance2 
) throws ShapeNotMatchException [static]

Do element-wise divide on two IArray objects. Xij = Aij / Bij. If the divisor is 0, skip that element. The rank of array1 must be greater than or equal to that of array2.

Parameters:
array1in IArray type
array2in IArray type
variance1in IArray type
variance2in IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toEltInverse ( final IArray  array,
final IArray  variance 
) throws DivideByZeroException, ShapeNotMatchException [static]

Do an element-wise inverse calculation on an IArray object. Yij = 1 / Xij. If there is zero values in the array, it will throw DivideByZeroException.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
DivideByZeroExceptiondivide by zero
ShapeNotMatchExceptionshape not match
static EData<IArray> org.gumtree.data.math.EMath.toEltInverseSkipZero ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Do a element-wise inverse calculation that skip zero values. For example, Yij = 1 / Xij.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toEltMultiply ( final IArray  array1,
final IArray  array2,
final IArray  variance1,
final IArray  variance2 
) throws ShapeNotMatchException [static]

Do element-wise multiply on two IArray objects. Xij = Aij * Bij. The rank of array1 must be greater than or equal to that of array2.

Parameters:
array1in IArray type
array2in IArray type
variance1in IArray type
variance2in IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toExp ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the e raised to the power of double values in the IArray element-wisely.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toLn ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate an element-wise natural logarithm (base e) of values of an IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toLog10 ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate an element-wise logarithm (base 10) of values of an IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toPower ( final IArray  array,
final double  power,
final IArray  variance 
) throws ShapeNotMatchException [static]

Do an element-wise power calculation of the array. Yij = Xij ^ power.

Parameters:
arrayin IArray type
powera double value
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toScale ( final IArray  array,
final double  value,
final IArray  variance,
final double  valueVariance 
) throws ShapeNotMatchException [static]

Scale the array with a double value element-wisely.

Parameters:
arrayin IArray type
valuedouble value
variancein IArray type
valueVariancea double value
Returns:
EData type for IArray
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toSin ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the sine value of each elements in the IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toSqrt ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the square root values of each element of an IArray. Create a new plot object with the result of the calculation.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type
Exceptions:
ShapeNotMatchException
static EData<IArray> org.gumtree.data.math.EMath.toTan ( final IArray  array,
final IArray  variance 
) throws ShapeNotMatchException [static]

Calculate the trigonometric value of each elements in the IArray.

Parameters:
arrayin IArray type
variancein IArray type
Returns:
EData with IArray type object
Exceptions:
ShapeNotMatchException
static EData<Double> org.gumtree.data.math.EMath.vecDot ( final IArray  arrA,
final IArray  arrB,
final IArray  varA,
final IArray  varB 
) throws ShapeNotMatchException [static]

Do a vector dot calculation for two IArray objects.

Parameters:
arrAin IArray type
arrBin IArray type
varAin IArray type
varBin IArray type
Returns:
EData with Double type
Exceptions:
ShapeNotMatchException

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables