Class JexlUnitTransform
java.lang.Object
net.simplace.core.jexl.builder.JexlUnitTransform
Unit transformation functions for JEXL rules (namespace
transform:).- Author:
- aenders
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JexlUnitTransform
public JexlUnitTransform()
-
-
Method Details
-
linear
Linear transformationy = a * x + b, used in JEXL liketransform:linear(a, b, x). The result is a Double if any argument is a Double, otherwise an Integer.- Parameters:
a- factor;nullmeans 1b- offset;nullmeans 0x- the value to transform- Returns:
- the transformed value
-
mean
-