public interface MathExpr
Modifier and Type | Method and Description |
---|---|
XsDoubleExpr |
acos(ServerExpression x)
Returns the arc cosine of x, in radians, in the range from 0 to pi (inclusive).
|
XsDoubleExpr |
asin(ServerExpression x)
Returns the arc sine of x, in radians, in the range from -pi/2 to +pi/2 (inclusive).
|
XsDoubleExpr |
atan(ServerExpression x)
Returns the arc tangent of x, in radians.
|
XsDoubleExpr |
atan2(ServerExpression y,
double x)
Returns the arc tangent of y/x, in radians, in the range from -pi/2 to +pi/2 (inclusive), using the signs of y and x to determine the apropriate quadrant.
|
XsDoubleExpr |
atan2(ServerExpression y,
ServerExpression x)
Returns the arc tangent of y/x, in radians, in the range from -pi/2 to +pi/2 (inclusive), using the signs of y and x to determine the apropriate quadrant.
|
XsDoubleExpr |
ceil(ServerExpression x)
Returns the smallest integer greater than or equal to x.
|
XsDoubleExpr |
correlation(ServerExpression arg)
Returns the Pearson correlation coefficient of a data set.
|
XsDoubleExpr |
cos(ServerExpression x)
Returns the cosine of x, in the range from -1 to +1 (inclusive).
|
XsDoubleExpr |
cosh(ServerExpression x)
Returns the hyperbolic cosine of x.
|
XsDoubleExpr |
cot(ServerExpression x)
Returns the cotangent of x.
|
XsDoubleExpr |
covariance(ServerExpression arg)
Returns the sample covariance of a data set.
|
XsDoubleExpr |
covarianceP(ServerExpression arg)
Returns the population covariance of a data set.
|
XsDoubleExpr |
degrees(ServerExpression x)
Returns numeric expression converted from radians to degrees.
|
XsDoubleExpr |
exp(ServerExpression x)
Returns e (approximately 2.71828182845905) to the xth power.
|
XsDoubleExpr |
fabs(ServerExpression x)
Returns the absolute value of x.
|
XsDoubleExpr |
floor(ServerExpression x)
Returns the largest integer less than or equal to x.
|
XsDoubleExpr |
fmod(ServerExpression x,
double y)
Returns the remainder of x/y.
|
XsDoubleExpr |
fmod(ServerExpression x,
ServerExpression y)
Returns the remainder of x/y.
|
ItemSeqExpr |
frexp(ServerExpression x)
Returns x broken up into mantissa and exponent, where x = mantissa*2^exponent.
|
XsDoubleExpr |
ldexp(ServerExpression y,
long i)
Returns x*2^i.
|
XsDoubleExpr |
ldexp(ServerExpression y,
ServerExpression i)
Returns x*2^i.
|
MathLinearModelExpr |
linearModel(ServerExpression arg)
Returns a linear model that fits the given data set.
|
XsDoubleSeqExpr |
linearModelCoeff(ServerExpression linearModel)
Returns the coefficients of the linear model.
|
XsDoubleExpr |
linearModelIntercept(ServerExpression linearModel)
Returns the intercept of the linear model.
|
XsDoubleExpr |
linearModelRsquared(ServerExpression linearModel)
Returns the R^2 value of the linear model.
|
MathLinearModelSeqExpr |
linearModelSeq(MathLinearModelExpr... items)
Deprecated.
(as of 4.2) construct a
ServerExpression sequence with PlanBuilder.seq() |
XsDoubleExpr |
log(ServerExpression x)
Returns the base-e logarithm of x.
|
XsDoubleExpr |
log10(ServerExpression x)
Returns the base-10 logarithm of x.
|
XsDoubleExpr |
median(ServerExpression arg)
Returns the median of a sequence of values.
|
XsAnyAtomicTypeSeqExpr |
mode(ServerExpression arg)
Returns the mode of a sequence.
|
XsAnyAtomicTypeSeqExpr |
mode(ServerExpression arg,
ServerExpression options)
Returns the mode of a sequence.
|
XsAnyAtomicTypeSeqExpr |
mode(ServerExpression arg,
java.lang.String options)
Returns the mode of a sequence.
|
XsDoubleSeqExpr |
modf(ServerExpression x)
Returns x broken up into fraction and integer.
|
XsDoubleSeqExpr |
percentile(ServerExpression arg,
double p)
Returns a sequence of percentile(s) given a sequence of percentage(s).
|
XsDoubleSeqExpr |
percentile(ServerExpression arg,
ServerExpression p)
Returns a sequence of percentile(s) given a sequence of percentage(s).
|
XsDoubleExpr |
percentRank(ServerExpression arg,
ServerExpression value)
Returns the rank of a value in a data set as a percentage of the data set.
|
XsDoubleExpr |
percentRank(ServerExpression arg,
ServerExpression value,
ServerExpression options)
Returns the rank of a value in a data set as a percentage of the data set.
|
XsDoubleExpr |
percentRank(ServerExpression arg,
java.lang.String value)
Returns the rank of a value in a data set as a percentage of the data set.
|
XsDoubleExpr |
percentRank(ServerExpression arg,
java.lang.String value,
java.lang.String options)
Returns the rank of a value in a data set as a percentage of the data set.
|
XsDoubleExpr |
pi()
Returns the value of pi.
|
XsDoubleExpr |
pow(ServerExpression x,
double y)
Returns x^y.
|
XsDoubleExpr |
pow(ServerExpression x,
ServerExpression y)
Returns x^y.
|
XsDoubleExpr |
radians(ServerExpression x)
Returns numeric expression converted from degrees to radians.
|
XsIntegerExpr |
rank(ServerExpression arg1,
ServerExpression arg2)
Returns the rank of a value in a data set.
|
XsIntegerExpr |
rank(ServerExpression arg1,
ServerExpression arg2,
ServerExpression options)
Returns the rank of a value in a data set.
|
XsIntegerExpr |
rank(ServerExpression arg1,
java.lang.String arg2)
Returns the rank of a value in a data set.
|
XsIntegerExpr |
rank(ServerExpression arg1,
java.lang.String arg2,
java.lang.String options)
Returns the rank of a value in a data set.
|
XsDoubleExpr |
sin(ServerExpression x)
Returns the sine of x, in the range from -1 to +1 (inclusive).
|
XsDoubleExpr |
sinh(ServerExpression x)
Returns the hyperbolic sine of x.
|
XsDoubleExpr |
sqrt(ServerExpression x)
Returns the square root of x.
|
XsDoubleExpr |
stddev(ServerExpression arg)
Returns the sample standard deviation of a sequence of values.
|
XsDoubleExpr |
stddevP(ServerExpression arg)
Returns the standard deviation of a population.
|
XsDoubleExpr |
tan(ServerExpression x)
Returns the tangent of x.
|
XsDoubleExpr |
tanh(ServerExpression x)
Returns the hyperbolic tangent of x, in the range from -1 to +1 (inclusive).
|
XsNumericExpr |
trunc(ServerExpression arg)
Returns the number truncated to a certain number of decimal places.
|
XsNumericExpr |
trunc(ServerExpression arg,
long n)
Returns the number truncated to a certain number of decimal places.
|
XsNumericExpr |
trunc(ServerExpression arg,
ServerExpression n)
Returns the number truncated to a certain number of decimal places.
|
XsDoubleExpr |
variance(ServerExpression arg)
Returns the sample variance of a sequence of values.
|
XsDoubleExpr |
varianceP(ServerExpression arg)
Returns the population variance of a sequence of values.
|
XsDoubleExpr acos(ServerExpression x)
Provides a client interface to the math:acos server function.
XsDoubleExpr asin(ServerExpression x)
Provides a client interface to the math:asin server function.
XsDoubleExpr atan(ServerExpression x)
Provides a client interface to the math:atan server function.
XsDoubleExpr atan2(ServerExpression y, double x)
Provides a client interface to the math:atan2 server function.
XsDoubleExpr atan2(ServerExpression y, ServerExpression x)
Provides a client interface to the math:atan2 server function.
XsDoubleExpr ceil(ServerExpression x)
Provides a client interface to the math:ceil server function.
XsDoubleExpr correlation(ServerExpression arg)
Provides a client interface to the math:correlation server function.
arg
- The input data set. Each array should contain a pair of values. (of json:array)XsDoubleExpr cos(ServerExpression x)
Provides a client interface to the math:cos server function.
XsDoubleExpr cosh(ServerExpression x)
Provides a client interface to the math:cosh server function.
XsDoubleExpr cot(ServerExpression x)
Provides a client interface to the math:cot server function.
XsDoubleExpr covariance(ServerExpression arg)
Provides a client interface to the math:covariance server function.
arg
- The input data set. Each array should contain a pair of values. (of json:array)XsDoubleExpr covarianceP(ServerExpression arg)
Provides a client interface to the math:covariance-p server function.
arg
- The input data set. Each array should contain a pair of values. (of json:array)XsDoubleExpr degrees(ServerExpression x)
Provides a client interface to the math:degrees server function.
XsDoubleExpr exp(ServerExpression x)
Provides a client interface to the math:exp server function.
XsDoubleExpr fabs(ServerExpression x)
Provides a client interface to the math:fabs server function.
XsDoubleExpr floor(ServerExpression x)
Provides a client interface to the math:floor server function.
XsDoubleExpr fmod(ServerExpression x, double y)
Provides a client interface to the math:fmod server function.
XsDoubleExpr fmod(ServerExpression x, ServerExpression y)
Provides a client interface to the math:fmod server function.
ItemSeqExpr frexp(ServerExpression x)
Provides a client interface to the math:frexp server function.
XsDoubleExpr ldexp(ServerExpression y, long i)
Provides a client interface to the math:ldexp server function.
y
- The floating-point number to be multiplied. (of xs:double)i
- The exponent integer. (of xs:integer)XsDoubleExpr ldexp(ServerExpression y, ServerExpression i)
Provides a client interface to the math:ldexp server function.
y
- The floating-point number to be multiplied. (of xs:double)i
- The exponent integer. (of xs:integer)MathLinearModelExpr linearModel(ServerExpression arg)
Provides a client interface to the math:linear-model server function.
arg
- The input data set. Each array should contain a pair of values. (of json:array)XsDoubleSeqExpr linearModelCoeff(ServerExpression linearModel)
Provides a client interface to the math:linear-model-coeff server function.
linearModel
- A linear model. (of math:linear-model)XsDoubleExpr linearModelIntercept(ServerExpression linearModel)
Provides a client interface to the math:linear-model-intercept server function.
linearModel
- A linear model. (of math:linear-model)XsDoubleExpr linearModelRsquared(ServerExpression linearModel)
Provides a client interface to the math:linear-model-rsquared server function.
linearModel
- A linear model. (of math:linear-model)XsDoubleExpr log(ServerExpression x)
Provides a client interface to the math:log server function.
XsDoubleExpr log10(ServerExpression x)
Provides a client interface to the math:log10 server function.
XsDoubleExpr median(ServerExpression arg)
Provides a client interface to the math:median server function.
XsAnyAtomicTypeSeqExpr mode(ServerExpression arg)
Provides a client interface to the math:mode server function.
arg
- The sequence of values. (of xs:anyAtomicType)XsAnyAtomicTypeSeqExpr mode(ServerExpression arg, java.lang.String options)
Provides a client interface to the math:mode server function.
arg
- The sequence of values. (of xs:anyAtomicType)options
- Options. The default is (). Options include: "collation=URI" Applies only when $arg is of the xs:string type. If no specified, the default collation is used. "coordinate-system=name" Applies only when $arg is of the cts:point type. If no specified, the default coordinate system is used. (of xs:string)XsAnyAtomicTypeSeqExpr mode(ServerExpression arg, ServerExpression options)
Provides a client interface to the math:mode server function.
arg
- The sequence of values. (of xs:anyAtomicType)options
- Options. The default is (). Options include: "collation=URI" Applies only when $arg is of the xs:string type. If no specified, the default collation is used. "coordinate-system=name" Applies only when $arg is of the cts:point type. If no specified, the default coordinate system is used. (of xs:string)XsDoubleSeqExpr modf(ServerExpression x)
Provides a client interface to the math:modf server function.
XsDoubleExpr percentRank(ServerExpression arg, java.lang.String value)
Provides a client interface to the math:percent-rank server function.
arg
- The sequence of values. (of xs:anyAtomicType)value
- The value to be "ranked". (of xs:anyAtomicType)XsDoubleExpr percentRank(ServerExpression arg, ServerExpression value)
Provides a client interface to the math:percent-rank server function.
arg
- The sequence of values. (of xs:anyAtomicType)value
- The value to be "ranked". (of xs:anyAtomicType)XsDoubleExpr percentRank(ServerExpression arg, java.lang.String value, java.lang.String options)
Provides a client interface to the math:percent-rank server function.
arg
- The sequence of values. (of xs:anyAtomicType)value
- The value to be "ranked". (of xs:anyAtomicType)options
- Options. The default is (). Options include: "ascending"(default) Rank the value as if the sequence was sorted in ascending order. "descending" Rank the value as if the sequence was sorted in descending order. "collation=URI" Applies only when $arg is of the xs:string type. If no specified, the default collation is used. "coordinate-system=name" Applies only when $arg is of the cts:point type. If no specified, the default coordinate system is used. (of xs:string)XsDoubleExpr percentRank(ServerExpression arg, ServerExpression value, ServerExpression options)
Provides a client interface to the math:percent-rank server function.
arg
- The sequence of values. (of xs:anyAtomicType)value
- The value to be "ranked". (of xs:anyAtomicType)options
- Options. The default is (). Options include: "ascending"(default) Rank the value as if the sequence was sorted in ascending order. "descending" Rank the value as if the sequence was sorted in descending order. "collation=URI" Applies only when $arg is of the xs:string type. If no specified, the default collation is used. "coordinate-system=name" Applies only when $arg is of the cts:point type. If no specified, the default coordinate system is used. (of xs:string)XsDoubleSeqExpr percentile(ServerExpression arg, double p)
Provides a client interface to the math:percentile server function.
XsDoubleSeqExpr percentile(ServerExpression arg, ServerExpression p)
Provides a client interface to the math:percentile server function.
XsDoubleExpr pi()
Provides a client interface to the math:pi server function.
XsDoubleExpr pow(ServerExpression x, double y)
Provides a client interface to the math:pow server function.
XsDoubleExpr pow(ServerExpression x, ServerExpression y)
Provides a client interface to the math:pow server function.
XsDoubleExpr radians(ServerExpression x)
Provides a client interface to the math:radians server function.
XsIntegerExpr rank(ServerExpression arg1, java.lang.String arg2)
Provides a client interface to the math:rank server function.
arg1
- The sequence of values. (of xs:anyAtomicType)arg2
- The value to be "ranked". (of xs:anyAtomicType)XsIntegerExpr rank(ServerExpression arg1, ServerExpression arg2)
Provides a client interface to the math:rank server function.
arg1
- The sequence of values. (of xs:anyAtomicType)arg2
- The value to be "ranked". (of xs:anyAtomicType)XsIntegerExpr rank(ServerExpression arg1, java.lang.String arg2, java.lang.String options)
Provides a client interface to the math:rank server function.
arg1
- The sequence of values. (of xs:anyAtomicType)arg2
- The value to be "ranked". (of xs:anyAtomicType)options
- Options. The default is (). Options include: "ascending"(default) Rank the value as if the sequence was sorted in ascending order. "descending" Rank the value as if the sequence was sorted in descending order. "collation=URI" Applies only when $arg is of the xs:string type. If no specified, the default collation is used. "coordinate-system=name" Applies only when $arg is of the cts:point type. If no specified, the default coordinate system is used. (of xs:string)XsIntegerExpr rank(ServerExpression arg1, ServerExpression arg2, ServerExpression options)
Provides a client interface to the math:rank server function.
arg1
- The sequence of values. (of xs:anyAtomicType)arg2
- The value to be "ranked". (of xs:anyAtomicType)options
- Options. The default is (). Options include: "ascending"(default) Rank the value as if the sequence was sorted in ascending order. "descending" Rank the value as if the sequence was sorted in descending order. "collation=URI" Applies only when $arg is of the xs:string type. If no specified, the default collation is used. "coordinate-system=name" Applies only when $arg is of the cts:point type. If no specified, the default coordinate system is used. (of xs:string)XsDoubleExpr sin(ServerExpression x)
Provides a client interface to the math:sin server function.
XsDoubleExpr sinh(ServerExpression x)
Provides a client interface to the math:sinh server function.
XsDoubleExpr sqrt(ServerExpression x)
Provides a client interface to the math:sqrt server function.
XsDoubleExpr stddev(ServerExpression arg)
Provides a client interface to the math:stddev server function.
XsDoubleExpr stddevP(ServerExpression arg)
Provides a client interface to the math:stddev-p server function.
XsDoubleExpr tan(ServerExpression x)
Provides a client interface to the math:tan server function.
XsDoubleExpr tanh(ServerExpression x)
Provides a client interface to the math:tanh server function.
XsNumericExpr trunc(ServerExpression arg)
Provides a client interface to the math:trunc server function.
arg
- A numeric value to truncate. (of xs:numeric)XsNumericExpr trunc(ServerExpression arg, long n)
Provides a client interface to the math:trunc server function.
arg
- A numeric value to truncate. (of xs:numeric)n
- The numbers of decimal places to truncate to. The default is 0. Negative values cause that many digits to the left of the decimal point to be truncated. (of xs:integer)XsNumericExpr trunc(ServerExpression arg, ServerExpression n)
Provides a client interface to the math:trunc server function.
arg
- A numeric value to truncate. (of xs:numeric)n
- The numbers of decimal places to truncate to. The default is 0. Negative values cause that many digits to the left of the decimal point to be truncated. (of xs:integer)XsDoubleExpr variance(ServerExpression arg)
Provides a client interface to the math:variance server function.
XsDoubleExpr varianceP(ServerExpression arg)
Provides a client interface to the math:variance-p server function.
MathLinearModelSeqExpr linearModelSeq(MathLinearModelExpr... items)
ServerExpression
sequence with PlanBuilder.seq()items
- the MathLinearModelExpr items collected by the sequenceCopyright © 2013-2018 MarkLogic Corporation.