public interface MathExpr
Modifier and Type | Method and Description |
---|---|
ServerExpression |
acos(ServerExpression x)
Returns the arc cosine of x, in radians, in the
range from 0 to pi (inclusive).
|
ServerExpression |
asin(ServerExpression x)
Returns the arc sine of x, in radians, in the
range from -pi/2 to +pi/2 (inclusive).
|
ServerExpression |
atan(ServerExpression x)
Returns the arc tangent of x, in radians.
|
ServerExpression |
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 appropriate quadrant.
|
ServerExpression |
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 appropriate quadrant.
|
ServerExpression |
ceil(ServerExpression x)
Returns the smallest integer greater than or
equal to x.
|
ServerExpression |
correlation(ServerExpression arg)
Returns the Pearson correlation coefficient of a
data set.
|
ServerExpression |
cos(ServerExpression x)
Returns the cosine of x, in the range from -1 to
+1 (inclusive).
|
ServerExpression |
cosh(ServerExpression x)
Returns the hyperbolic cosine of x.
|
ServerExpression |
cot(ServerExpression x)
Returns the cotangent of x.
|
ServerExpression |
covariance(ServerExpression arg)
Returns the sample covariance of a data
set.
|
ServerExpression |
covarianceP(ServerExpression arg)
Returns the population covariance of a data
set.
|
ServerExpression |
degrees(ServerExpression x)
Returns numeric expression converted from
radians to degrees.
|
ServerExpression |
exp(ServerExpression x)
Returns e (approximately 2.71828182845905) to
the xth power.
|
ServerExpression |
fabs(ServerExpression x)
Returns the absolute value of x.
|
ServerExpression |
floor(ServerExpression x)
Returns the largest integer less than or equal
to x.
|
ServerExpression |
fmod(ServerExpression x,
double y)
Returns the remainder of x/y.
|
ServerExpression |
fmod(ServerExpression x,
ServerExpression y)
Returns the remainder of x/y.
|
ServerExpression |
frexp(ServerExpression x)
Returns x broken up into mantissa and exponent,
where x = mantissa*2^exponent.
|
ServerExpression |
ldexp(ServerExpression y,
long i)
Returns x*2^i.
|
ServerExpression |
ldexp(ServerExpression y,
ServerExpression i)
Returns x*2^i.
|
ServerExpression |
linearModel(ServerExpression arg)
Returns a linear model that fits the given data
set.
|
ServerExpression |
linearModelCoeff(ServerExpression linearModel)
Returns the coefficients of the linear
model.
|
ServerExpression |
linearModelIntercept(ServerExpression linearModel)
Returns the intercept of the linear model.
|
ServerExpression |
linearModelRsquared(ServerExpression linearModel)
Returns the R^2 value of the linear model.
|
ServerExpression |
log(ServerExpression x)
Returns the base-e logarithm of x.
|
ServerExpression |
log10(ServerExpression x)
Returns the base-10 logarithm of x.
|
ServerExpression |
median(ServerExpression arg)
Returns the median of a sequence of
values.
|
ServerExpression |
mode(ServerExpression arg)
Returns the mode of a sequence.
|
ServerExpression |
mode(ServerExpression arg,
ServerExpression options)
Returns the mode of a sequence.
|
ServerExpression |
mode(ServerExpression arg,
java.lang.String options)
Returns the mode of a sequence.
|
ServerExpression |
modf(ServerExpression x)
Returns x broken up into fraction and
integer.
|
ServerExpression |
percentile(ServerExpression arg,
double p)
Returns a sequence of percentile(s) given a
sequence of percentage(s).
|
ServerExpression |
percentile(ServerExpression arg,
ServerExpression p)
Returns a sequence of percentile(s) given a
sequence of percentage(s).
|
ServerExpression |
percentRank(ServerExpression arg,
ServerExpression value)
Returns the rank of a value in a data set as a
percentage of the data set.
|
ServerExpression |
percentRank(ServerExpression arg,
ServerExpression value,
ServerExpression options)
Returns the rank of a value in a data set as a
percentage of the data set.
|
ServerExpression |
percentRank(ServerExpression arg,
java.lang.String value)
Returns the rank of a value in a data set as a
percentage of the data set.
|
ServerExpression |
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.
|
ServerExpression |
pi()
Returns the value of pi.
|
ServerExpression |
pow(ServerExpression x,
double y)
Returns x^y.
|
ServerExpression |
pow(ServerExpression x,
ServerExpression y)
Returns x^y.
|
ServerExpression |
radians(ServerExpression x)
Returns numeric expression converted from
degrees to radians.
|
ServerExpression |
rank(ServerExpression arg1,
ServerExpression arg2)
Returns the rank of a value in a data set.
|
ServerExpression |
rank(ServerExpression arg1,
ServerExpression arg2,
ServerExpression options)
Returns the rank of a value in a data set.
|
ServerExpression |
rank(ServerExpression arg1,
java.lang.String arg2)
Returns the rank of a value in a data set.
|
ServerExpression |
rank(ServerExpression arg1,
java.lang.String arg2, java.lang.String options)
Returns the rank of a value in a data set.
|
ServerExpression |
sin(ServerExpression x)
Returns the sine of x, in the range from -1 to
+1 (inclusive).
|
ServerExpression |
sinh(ServerExpression x)
Returns the hyperbolic sine of x.
|
ServerExpression |
sqrt(ServerExpression x)
Returns the square root of x.
|
ServerExpression |
stddev(ServerExpression arg)
Returns the sample standard deviation of a
sequence of values.
|
ServerExpression |
stddevP(ServerExpression arg)
Returns the standard deviation of a
population.
|
ServerExpression |
tan(ServerExpression x)
Returns the tangent of x.
|
ServerExpression |
tanh(ServerExpression x)
Returns the hyperbolic tangent of x, in the
range from -1 to +1 (inclusive).
|
ServerExpression |
trunc(ServerExpression arg)
Returns the number truncated to a certain number
of decimal places.
|
ServerExpression |
trunc(ServerExpression arg,
long n)
Returns the number truncated to a certain number
of decimal places.
|
ServerExpression |
trunc(ServerExpression arg,
ServerExpression n)
Returns the number truncated to a certain number
of decimal places.
|
ServerExpression |
variance(ServerExpression arg)
Returns the sample variance of a sequence of
values.
|
ServerExpression |
varianceP(ServerExpression arg)
Returns the population variance of a sequence of
values.
|
ServerExpression acos(ServerExpression x)
Provides a client interface to the math:acos server function.
ServerExpression asin(ServerExpression x)
Provides a client interface to the math:asin server function.
ServerExpression atan(ServerExpression x)
Provides a client interface to the math:atan server function.
ServerExpression atan2(ServerExpression y, double x)
Provides a client interface to the math:atan2 server function.
ServerExpression atan2(ServerExpression y, ServerExpression x)
Provides a client interface to the math:atan2 server function.
ServerExpression ceil(ServerExpression x)
Provides a client interface to the math:ceil server function.
ServerExpression 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)ServerExpression cos(ServerExpression x)
Provides a client interface to the math:cos server function.
ServerExpression cosh(ServerExpression x)
Provides a client interface to the math:cosh server function.
ServerExpression cot(ServerExpression x)
Provides a client interface to the math:cot server function.
ServerExpression 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)ServerExpression 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)ServerExpression degrees(ServerExpression x)
Provides a client interface to the math:degrees server function.
ServerExpression exp(ServerExpression x)
Provides a client interface to the math:exp server function.
ServerExpression fabs(ServerExpression x)
Provides a client interface to the math:fabs server function.
ServerExpression floor(ServerExpression x)
Provides a client interface to the math:floor server function.
ServerExpression fmod(ServerExpression x, double y)
Provides a client interface to the math:fmod server function.
ServerExpression fmod(ServerExpression x, ServerExpression y)
Provides a client interface to the math:fmod server function.
ServerExpression frexp(ServerExpression x)
Provides a client interface to the math:frexp server function.
ServerExpression 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)ServerExpression 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)ServerExpression 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)ServerExpression linearModelCoeff(ServerExpression linearModel)
Provides a client interface to the math:linear-model-coeff server function.
linearModel
- A linear model. (of math:linear-model)ServerExpression linearModelIntercept(ServerExpression linearModel)
Provides a client interface to the math:linear-model-intercept server function.
linearModel
- A linear model. (of math:linear-model)ServerExpression linearModelRsquared(ServerExpression linearModel)
Provides a client interface to the math:linear-model-rsquared server function.
linearModel
- A linear model. (of math:linear-model)ServerExpression log(ServerExpression x)
Provides a client interface to the math:log server function.
ServerExpression log10(ServerExpression x)
Provides a client interface to the math:log10 server function.
ServerExpression median(ServerExpression arg)
Provides a client interface to the math:median server function.
ServerExpression mode(ServerExpression arg)
Provides a client interface to the math:mode server function.
arg
- The sequence of values. (of xs:anyAtomicType)ServerExpression 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)ServerExpression 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)ServerExpression modf(ServerExpression x)
Provides a client interface to the math:modf server function.
ServerExpression 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)ServerExpression 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)ServerExpression 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)ServerExpression 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)ServerExpression percentile(ServerExpression arg, double p)
Provides a client interface to the math:percentile server function.
ServerExpression percentile(ServerExpression arg, ServerExpression p)
Provides a client interface to the math:percentile server function.
ServerExpression pi()
Provides a client interface to the math:pi server function.
ServerExpression pow(ServerExpression x, double y)
Provides a client interface to the math:pow server function.
ServerExpression pow(ServerExpression x, ServerExpression y)
Provides a client interface to the math:pow server function.
ServerExpression radians(ServerExpression x)
Provides a client interface to the math:radians server function.
ServerExpression 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)ServerExpression 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)ServerExpression 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)ServerExpression 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)ServerExpression sin(ServerExpression x)
Provides a client interface to the math:sin server function.
ServerExpression sinh(ServerExpression x)
Provides a client interface to the math:sinh server function.
ServerExpression sqrt(ServerExpression x)
Provides a client interface to the math:sqrt server function.
ServerExpression stddev(ServerExpression arg)
Provides a client interface to the math:stddev server function.
ServerExpression stddevP(ServerExpression arg)
Provides a client interface to the math:stddev-p server function.
ServerExpression tan(ServerExpression x)
Provides a client interface to the math:tan server function.
ServerExpression tanh(ServerExpression x)
Provides a client interface to the math:tanh server function.
ServerExpression trunc(ServerExpression arg)
Provides a client interface to the math:trunc server function.
arg
- A numeric value to truncate. (of xs:numeric)ServerExpression 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)ServerExpression 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)ServerExpression variance(ServerExpression arg)
Provides a client interface to the math:variance server function.
ServerExpression varianceP(ServerExpression arg)
Provides a client interface to the math:variance-p server function.
Copyright © 2024 MarkLogic Corporation. All Rights Reserved.