public class Modulation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
a1 |
private double |
a2 |
private char |
axis |
private double |
center |
private double |
delta2 |
private double |
left |
(package private) static double[][] |
legendre |
private int |
order |
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_LEGENDRE |
static char |
TYPE_DISP_SAWTOOTH |
static char |
TYPE_OCC_CRENEL |
static char |
TYPE_OCC_FOURIER |
static char |
TYPE_SPIN_FOURIER |
static char |
TYPE_SPIN_SAWTOOTH |
static char |
TYPE_U_FOURIER |
static char |
TYPE_U_LEGENDRE |
private java.lang.String |
utens |
Constructor and Description |
---|
Modulation(char axis,
char type,
double[] params,
java.lang.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) |
(package private) void |
calcLegendre(int m) |
java.util.Hashtable<java.lang.String,java.lang.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 int order
private char axis
private final char type
private double[] params
private java.lang.String utens
private double delta2
public static final char TYPE_DISP_FOURIER
public static final char TYPE_SPIN_FOURIER
public static final char TYPE_SPIN_SAWTOOTH
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 static final char TYPE_DISP_LEGENDRE
public static final char TYPE_U_LEGENDRE
static double[][] legendre
public Modulation(char axis, char type, double[] params, java.lang.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
- public java.util.Hashtable<java.lang.String,java.lang.Object> getInfo()
void calcLegendre(int m)