Enum Class DstNormalization
- All Implemented Interfaces:
Serializable
,Comparable<DstNormalization>
,Constable
This enumeration defines the various types of normalizations that can be
applied to discrete sine transforms (DST). The exact definition of these
normalizations is detailed below.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShould be passed to the constructor ofFastSineTransformer
to use the orthogonal normalization convention.Should be passed to the constructor ofFastSineTransformer
to use the standard normalization convention. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DstNormalization
Returns the enum constant of this class with the specified name.static DstNormalization[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD_DST_I
Should be passed to the constructor ofFastSineTransformer
to use the standard normalization convention. The standard DST-I normalization convention is defined as follows- forward transform: yn = ∑k=0N-1 xk sin(π nk / N),
- inverse transform: xk = (2 / N) ∑n=0N-1 yn sin(π nk / N),
-
ORTHOGONAL_DST_I
Should be passed to the constructor ofFastSineTransformer
to use the orthogonal normalization convention. The orthogonal DCT-I normalization convention is defined as follows- Forward transform: yn = √(2 / N) ∑k=0N-1 xk sin(π nk / N),
- Inverse transform: xk = √(2 / N) ∑n=0N-1 yn sin(π nk / N),
-
-
Constructor Details
-
DstNormalization
private DstNormalization()
-
-
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
-