- All Implemented Interfaces:
Serializable
,Comparable<ScalingMode>
,java.lang.constant.Constable
Scaling mode used for the DFT.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSame scaling factor (1/sqrt(M)) is applied in forward and inverse transform.Scaling by a factor 1/M is applied to the forward transformation only.Scaling by a factor 1/M is applied to the inverse transformation only. -
Method Summary
Modifier and TypeMethodDescriptionabstract double
getScale
(int M, boolean forward) Returns the DFT scale factor for the specified data size and transformation direction.static ScalingMode
Returns the enum constant of this type with the specified name.static ScalingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Same scaling factor (1/sqrt(M)) is applied in forward and inverse transform. -
FORWARD_ONLY
Scaling by a factor 1/M is applied to the forward transformation only. -
INVERSE_ONLY
Scaling by a factor 1/M is applied to the inverse transformation only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getScale
Returns the DFT scale factor for the specified data size and transformation direction.- Parameters:
M
- the data sizeforward
-true
for a forward,false
for a inverse transform- Returns:
- the scale factor
-