Interface Terms
public interface Terms
Predefined terms.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic TermCreates a variable.static AbsTheabs(x)term.static AbsTheabs(x)term.static DoubleFunctionTheacos(x)term.static DoubleFunctionTheacos(x)term.static TermAdds two terms.static TermAdds two terms.static TermAdds two terms.static TermAdds two terms.static DoubleFunctionTheasin(x)term.static DoubleFunctionTheasin(x)term.static DoubleFunctionTheatan(x)term.static DoubleFunctionTheatan(x)term.static DoubleFunctionThecbrt(x)term.static DoubleFunctionThecbrt(x)term.static DoubleFunctionTheceil(x)term.static DoubleFunctionTheceil(x)term.static DoubleFunctionThecos(x)term.static DoubleFunctionThecos(x)term.static DoubleFunctionThecosh(x)term.static DoubleFunctionThecosh(x)term.static FactorCrossingFactor crossing of two or more factors.static FactorCrossingFactor crossing of two or more factors.static Datedate(String x, DateFeature... features) Extracts date/time features.static TermDeletes a variable or the intercept ("1") from the formula.static TermDeletes a term from the formula.static TermDivides two terms.static TermDivides two terms.static TermDivides two terms.static TermDivides two terms.static Dotdot()Returns the special term "." that means all columns not otherwise in the formula in the context of a data frame.static DoubleFunctionTheexp(x)term.static DoubleFunctionTheexp(x)term.static DoubleFunctionTheexp(x) - 1term.static DoubleFunctionTheexp(x) - 1term.static DoubleFunctionThefloor(x)term.static DoubleFunctionThefloor(x)term.static FactorInteractionFactor interaction of two or more factors.static DoubleFunctionThelog(x)term.static DoubleFunctionThelog(x)term.static DoubleFunctionThelog10(x)term.static DoubleFunctionThelog10(x)term.static DoubleFunctionThelog(1 + x)term.static DoubleFunctionThelog(1 + x)term.static DoubleFunctionThelog2(x)term.static DoubleFunctionThelog2(x)term.static TermMultiplies two terms.static TermMultiplies two terms.static TermMultiplies two terms.static TermMultiplies two terms.static <T,R> Term Returns a term that applies a lambda on given variable.static <T,U, R> Term Returns a term that applies a lambda on given variables.static <T,U> Term of(String name, String x, String y, ToDoubleBiFunction<T, U> f) Returns a term that applies a lambda on given variables.static <T,U> Term of(String name, String x, String y, ToIntBiFunction<T, U> f) Returns a term that applies a lambda on given variables.static <T,U> Term of(String name, String x, String y, ToLongBiFunction<T, U> f) Returns a term that applies a lambda on given variables.static <T> Termof(String name, String x, ToDoubleFunction<T> f) Returns a term that applies a lambda on given variable.static <T> Termof(String name, String x, ToIntFunction<T> f) Returns a term that applies a lambda on given variable.static <T> Termof(String name, String x, ToLongFunction<T> f) Returns a term that applies a lambda on given variable.static <T,R> Term Returns a term that applies a lambda on given term.static <T> Termof(String name, Term x, ToDoubleFunction<T> f) Returns a term that applies a lambda on given term.static <T> Termof(String name, Term x, ToIntFunction<T> f) Returns a term that applies a lambda on given term.static <T> Termof(String name, Term x, ToLongFunction<T> f) Returns a term that applies a lambda on given term.static <T,U, R> Term Returns a term that applies a lambda on given terms.static <T,U> Term of(String name, Term x, Term y, ToDoubleBiFunction<T, U> f) Returns a term that applies a lambda on given terms.static <T,U> Term of(String name, Term x, Term y, ToIntBiFunction<T, U> f) Returns a term that applies a lambda on given terms.static <T,U> Term of(String name, Term x, Term y, ToLongBiFunction<T, U> f) Returns a term that applies a lambda on given terms.static DoubleFunctionTherint(x)term.static DoubleFunctionTherint(x)term.static RoundTheround(x)term.static RoundTheround(x)term.static IntFunctionThesign(x)term.static IntFunctionThesign(x)term.static DoubleFunctionThesignum(x)term.static DoubleFunctionThesignum(x)term.static DoubleFunctionThesin(x)term.static DoubleFunctionThesin(x)term.static DoubleFunctionThesinh(x)term.static DoubleFunctionThesinh(x)term.static DoubleFunctionThesqrt(x)term.static DoubleFunctionThesqrt(x)term.static TermSubtracts two terms.static TermSubtracts two terms.static TermSubtracts two terms.static TermSubtracts two terms.static DoubleFunctionThetan(x)term.static DoubleFunctionThetan(x)term.static DoubleFunctionThetanh(x)term.static DoubleFunctionThetanh(x)term.static DoubleFunctionTheulp(x)term.static DoubleFunctionTheulp(x)term.static Termval(boolean x) Returns a constant boolean term.static Termval(byte x) Returns a constant byte term.static Termval(char x) Returns a constant char term.static Termval(double x) Returns a constant double precision floating number term.static Termval(float x) Returns a constant single precision floating number term.static Termval(int x) Returns a constant integer term.static Termval(long x) Returns a constant long integer term.static Termval(short x) Returns a constant short integer term.static TermReturns a constant object term.
-
Method Details
-
$
-
dot
Returns the special term "." that means all columns not otherwise in the formula in the context of a data frame.- Returns:
- the special term ".".
-
interact
Factor interaction of two or more factors.- Parameters:
factors- the factors.- Returns:
- the interaction term.
-
cross
Factor crossing of two or more factors.- Parameters:
factors- the factors.- Returns:
- the crossing term.
-
cross
Factor crossing of two or more factors.- Parameters:
order- the order of factor interactions.factors- the factors.- Returns:
- the crossing term.
-
delete
-
delete
-
date
Extracts date/time features.- Parameters:
x- the variable.features- the date features.- Returns:
- the date term.
-
add
-
add
-
add
-
add
-
sub
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
abs
-
abs
-
ceil
Theceil(x)term.- Parameters:
x- the term.- Returns:
- the
ceil(x)term.
-
ceil
Theceil(x)term.- Parameters:
x- the term.- Returns:
- the
ceil(x)term.
-
floor
Thefloor(x)term.- Parameters:
x- the term.- Returns:
- the
floor(x)term.
-
floor
Thefloor(x)term.- Parameters:
x- the term.- Returns:
- the
floor(x)term.
-
round
-
round
-
rint
Therint(x)term.- Parameters:
x- the term.- Returns:
- the
rint(x)term.
-
rint
Therint(x)term.- Parameters:
x- the term.- Returns:
- the
rint(x)term.
-
exp
Theexp(x)term.- Parameters:
x- the term.- Returns:
- the
exp(x)term.
-
exp
Theexp(x)term.- Parameters:
x- the term.- Returns:
- the
exp(x)term.
-
expm1
Theexp(x) - 1term.- Parameters:
x- the term.- Returns:
- the
exp(x) - 1term.
-
expm1
Theexp(x) - 1term.- Parameters:
x- the term.- Returns:
- the
exp(x) - 1term.
-
log
Thelog(x)term.- Parameters:
x- the term.- Returns:
- the
log(x)term.
-
log
Thelog(x)term.- Parameters:
x- the term.- Returns:
- the
log(x)term.
-
log1p
Thelog(1 + x)term.- Parameters:
x- the term.- Returns:
- the
log(1 + x)term.
-
log1p
Thelog(1 + x)term.- Parameters:
x- the term.- Returns:
- the
log(1 + x)term.
-
log10
Thelog10(x)term.- Parameters:
x- the term.- Returns:
- the
log10(x)term.
-
log10
Thelog10(x)term.- Parameters:
x- the term.- Returns:
- the
log10(x)term.
-
log2
Thelog2(x)term.- Parameters:
x- the term.- Returns:
- the
log2(x)term.
-
log2
Thelog2(x)term.- Parameters:
x- the term.- Returns:
- the
log2(x)term.
-
signum
Thesignum(x)term.- Parameters:
x- the term.- Returns:
- the
signum(x)term.
-
signum
Thesignum(x)term.- Parameters:
x- the term.- Returns:
- the
signum(x)term.
-
sign
Thesign(x)term.- Parameters:
x- the term.- Returns:
- the
sign(x)term.
-
sign
Thesign(x)term.- Parameters:
x- the term.- Returns:
- the
sign(x)term.
-
sqrt
Thesqrt(x)term.- Parameters:
x- the term.- Returns:
- the
sqrt(x)term.
-
sqrt
Thesqrt(x)term.- Parameters:
x- the term.- Returns:
- the
sqrt(x)term.
-
cbrt
Thecbrt(x)term.- Parameters:
x- the term.- Returns:
- the
cbrt(x)term.
-
cbrt
Thecbrt(x)term.- Parameters:
x- the term.- Returns:
- the
cbrt(x)term.
-
sin
Thesin(x)term.- Parameters:
x- the term.- Returns:
- the
sin(x)term.
-
sin
Thesin(x)term.- Parameters:
x- the term.- Returns:
- the
sin(x)term.
-
cos
Thecos(x)term.- Parameters:
x- the term.- Returns:
- the
cos(x)term.
-
cos
Thecos(x)term.- Parameters:
x- the term.- Returns:
- the
cos(x)term.
-
tan
Thetan(x)term.- Parameters:
x- the term.- Returns:
- the
tan(x)term.
-
tan
Thetan(x)term.- Parameters:
x- the term.- Returns:
- the
tan(x)term.
-
sinh
Thesinh(x)term.- Parameters:
x- the term.- Returns:
- the
sinh(x)term.
-
sinh
Thesinh(x)term.- Parameters:
x- the term.- Returns:
- the
sinh(x)term.
-
cosh
Thecosh(x)term.- Parameters:
x- the term.- Returns:
- the
cosh(x)term.
-
cosh
Thecosh(x)term.- Parameters:
x- the term.- Returns:
- the
cosh(x)term.
-
tanh
Thetanh(x)term.- Parameters:
x- the term.- Returns:
- the
tanh(x)term.
-
tanh
Thetanh(x)term.- Parameters:
x- the term.- Returns:
- the
tanh(x)term.
-
asin
Theasin(x)term.- Parameters:
x- the term.- Returns:
- the
asin(x)term.
-
asin
Theasin(x)term.- Parameters:
x- the term.- Returns:
- the
asin(x)term.
-
acos
Theacos(x)term.- Parameters:
x- the term.- Returns:
- the
acos(x)term.
-
acos
Theacos(x)term.- Parameters:
x- the term.- Returns:
- the
acos(x)term.
-
atan
Theatan(x)term.- Parameters:
x- the term.- Returns:
- the
atan(x)term.
-
atan
Theatan(x)term.- Parameters:
x- the term.- Returns:
- the
atan(x)term.
-
ulp
Theulp(x)term.- Parameters:
x- the term.- Returns:
- the
ulp(x)term.
-
ulp
Theulp(x)term.- Parameters:
x- the term.- Returns:
- the
ulp(x)term.
-
val
Returns a constant boolean term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant char term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant byte term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant short integer term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant integer term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant long integer term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant single precision floating number term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
Returns a constant double precision floating number term.- Parameters:
x- the value.- Returns:
- the constant value term.
-
val
-
of
Returns a term that applies a lambda on given variable.- Type Parameters:
T- the data type of input term.- Parameters:
name- the function name.x- the variable name.f- the lambda to apply on the variable.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given term.- Type Parameters:
T- the data type of input term.- Parameters:
name- the function name.x- the term.f- the lambda to apply on the term.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variable.- Type Parameters:
T- the data type of input term.- Parameters:
name- the function name.x- the variable name.f- the lambda to apply on the variable.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given term.- Type Parameters:
T- the data type of input term.- Parameters:
name- the function name.x- the term.f- the lambda to apply on the term.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variable.- Type Parameters:
T- the data type of input term.- Parameters:
name- the function name.x- the variable name.f- the lambda to apply on the variable.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given term.- Type Parameters:
T- the data type of input term.- Parameters:
name- the function name.x- the term.f- the lambda to apply on the term.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variable.- Type Parameters:
T- the data type of input term.R- the data type of output term.- Parameters:
name- the function name.x- the variable name.clazz- the class of return object.f- the lambda to apply on the variable.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given term.- Type Parameters:
T- the data type of input term.R- the data type of output term.- Parameters:
name- the function name.x- the term.clazz- the class of return object.f- the lambda to apply on the term.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variables.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.f- the lambda to apply on the variables.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given terms.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.f- the lambda to apply on the terms.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variables.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.f- the lambda to apply on the variables.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given terms.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.f- the lambda to apply on the terms.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variables.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.f- the lambda to apply on the variables.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given terms.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.f- the lambda to apply on the terms.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given variables.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.R- the data type of output term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.clazz- the class of return object.f- the lambda to apply on the variables.- Returns:
- the term.
-
of
Returns a term that applies a lambda on given terms.- Type Parameters:
T- the data type of first input term.U- the data type of second input term.R- the data type of output term.- Parameters:
name- the function name.x- the first parameter of function.y- the second parameter of function.clazz- the class of return object.f- the lambda to apply on the terms.- Returns:
- the term.
-