Module datarush.analytics
Enum StatsFunctions.NormalizeMethod
- java.lang.Object
-
- java.lang.Enum<StatsFunctions.NormalizeMethod>
-
- com.pervasive.datarush.analytics.functions.StatsFunctions.NormalizeMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<StatsFunctions.NormalizeMethod>
- Enclosing class:
- StatsFunctions
public static enum StatsFunctions.NormalizeMethod extends Enum<StatsFunctions.NormalizeMethod>
Supported methods of value normalization.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSuffix()
Return the suffix added to fields normalized by this method.static StatsFunctions.NormalizeMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatsFunctions.NormalizeMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINMAX
public static final StatsFunctions.NormalizeMethod MINMAX
Normalize using the min-max method:n = (x - min) / (max - min)
.
-
ZSCORE
public static final StatsFunctions.NormalizeMethod ZSCORE
Normalize using z-score:z(x) = (x - mean) / standard_deviation
.
-
-
Method Detail
-
values
public static StatsFunctions.NormalizeMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StatsFunctions.NormalizeMethod c : StatsFunctions.NormalizeMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatsFunctions.NormalizeMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSuffix
public String getSuffix()
Return the suffix added to fields normalized by this method.- Returns:
- field name suffix
-
-