public enum Apodization extends Enum<Apodization>
Cache if different caching behaviour is wanted.| Modifier and Type | Class and Description |
|---|---|
protected static class |
Apodization.ApodizationArrayDescription
private class identifying a specific buffer array, used as a key for the array cache
|
| Enum Constant and Description |
|---|
Blackman |
BlackmanHarris |
BlackmanNuttall |
Exponential |
FlatTop |
Hamming |
Hann |
HannExp |
Nuttall |
Rectangular |
| Modifier and Type | Method and Description |
|---|---|
void |
apodize(double[] data)
Applies the given apodization window to the given array (in-place)
|
static void |
apodize(double[] data,
Apodization function)
Applies the given apodization window to the given array (in-place)
|
double |
getIndex(int i,
int n)
computes and returns the value of the apodization function for a given window index
|
double |
getIndex(int i,
int n,
double m)
computes and returns the value of the apodization function for a given window index
|
double |
getIndexUncached(int i,
int n)
Directly computes a single window value.
|
String |
getName() |
double[] |
getWindow(int n)
Returns the window for a
|
static Map<Apodization.ApodizationArrayDescription,double[]> |
getWindowCache() |
static void |
setWindowCache(Map<Apodization.ApodizationArrayDescription,double[]> windowCache)
Changes the map used to cache the apodization windows.
|
static Apodization |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Apodization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Apodization Rectangular
public static final Apodization Hamming
public static final Apodization Hann
public static final Apodization HannExp
public static final Apodization Blackman
public static final Apodization Nuttall
public static final Apodization BlackmanHarris
public static final Apodization BlackmanNuttall
public static final Apodization FlatTop
public static final Apodization Exponential
public static Apodization[] values()
for (Apodization c : Apodization.values()) System.out.println(c);
public static Apodization valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic double getIndex(int i,
int n)
i - index within windown - length of windowpublic double getIndex(int i,
int n,
double m)
i - index within windown - length of windowm - additional window (typ. bandwidth, power, etc)public double getIndexUncached(int i,
int n)
getIndex(int, int) provides.i - index within the windown - length of the windowpublic String getName()
public double[] getWindow(int n)
n - window sizepublic void apodize(double[] data)
data - input datapublic static void apodize(double[] data,
Apodization function)
data - input datafunction - the apodization function to usepublic static Map<Apodization.ApodizationArrayDescription,double[]> getWindowCache()
public static void setWindowCache(Map<Apodization.ApodizationArrayDescription,double[]> windowCache)
WeakHashMap invalidates under memory
pressure (The default)
Cache limits retention time and number of cached entries
windowCache - A map to use as a cache for the apodization windowsCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.