public class Modulation extends Object
Modifier and Type | Field and Description |
---|---|
private double |
a1 |
private double |
a2 |
private char |
axis |
private double |
center |
private double |
left |
private double[] |
params |
private double[] |
qCoefs |
private double |
right |
private static double |
TWOPI |
private char |
type |
static char |
TYPE_DISP_FOURIER |
static char |
TYPE_DISP_SAWTOOTH |
static char |
TYPE_OCC_CRENEL |
static char |
TYPE_OCC_FOURIER |
static char |
TYPE_U_FOURIER |
private String |
utens |
Constructor and Description |
---|
Modulation(char axis,
char type,
double[] params,
String utens,
double[] qCoefs)
Each atomic modulation involves a fractional coordinate wave vector q, a
Fourier power n, a modulation axis (x, y, or, z), and specified parameters
that depend upon the type of function.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
apply(ModulationSet ms,
double[][] t)
see note in ModulationSet
|
Hashtable<String,Object> |
getInfo() |
private boolean |
range(double x4)
Check that left < x4 < right, but allow for folding
|
private static final double TWOPI
private double[] qCoefs
private double a1
private double a2
private double center
private double left
private double right
private char axis
private final char type
private double[] params
private String utens
public static final char TYPE_DISP_FOURIER
public static final char TYPE_DISP_SAWTOOTH
public static final char TYPE_OCC_FOURIER
public static final char TYPE_OCC_CRENEL
public static final char TYPE_U_FOURIER
public Modulation(char axis, char type, double[] params, String utens, double[] qCoefs)
axis
- type
- params
- utens
- TODOqCoefs
- void apply(ModulationSet ms, double[][] t)
ms
- t
- -- Vector of coordinates for [x4, x5, x6, ...]private boolean range(double x4)
x4
-