Package com.macrofocus.common.scale
Enum Class NumericTransform
- All Implemented Interfaces:
Transform
,Serializable
,Comparable<NumericTransform>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInverse Hyperbolic Sine transformationArc-sin square root transformationArc-tangent transformationLog transformationLog transformationLog transformationLog transformationIdentityLog transformationLog transformationLog transformationLog transformationLogitProbitSmoothly transition to linear scale around 0Smoothly transition to linear scale around 0Smoothly transition to linear scale around 0Reverse transformation Reversing transformation works by multiplying the input with -1. -
Method Summary
Modifier and TypeMethodDescriptionstatic double
asinh
(double a) Compute the inverse hyperbolic sine of a number.static NumericTransform
Returns the enum constant of this class with the specified name.static NumericTransform[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.macrofocus.common.scale.Transform
getMinorBreaks
-
Enum Constant Details
-
ASN
Arc-sin square root transformationThis is the variance stabilising transformation for the binomial distribution.
-
ATANH
Arc-tangent transformation -
ASINH
Inverse Hyperbolic Sine transformation -
EXP
Log transformation -
EXP2
Log transformation -
EXP10
Log transformation -
EXP1P
Log transformation -
IDENTITY
Identity -
LOG
Log transformation -
LOG2
Log transformation -
LOG10
Log transformation -
LOG1P
Log transformation -
PSEUDO_LOG
Smoothly transition to linear scale around 0 -
PSEUDO_LOG2
Smoothly transition to linear scale around 0 -
PSEUDO_LOG10
Smoothly transition to linear scale around 0 -
LOGIT
Logit -
PROBIT
Probit -
RECIPROCAL
-
REVERSE
Reverse transformation Reversing transformation works by multiplying the input with -1. This means that reverse transformation cannot easily be composed with transformations that require positive input unless the reversing is done as a final step. -
SQRT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getShortName
- Specified by:
getShortName
in interfaceTransform
-
getTransform
- Specified by:
getTransform
in interfaceTransform
-
getInverse
- Specified by:
getInverse
in interfaceTransform
-
getDTransform
- Specified by:
getDTransform
in interfaceTransform
-
getDInverse
- Specified by:
getDInverse
in interfaceTransform
-
getDomain
-
asinh
public static double asinh(double a) Compute the inverse hyperbolic sine of a number.- Parameters:
a
- number on which evaluation is done- Returns:
- inverse hyperbolic sine of a
-