|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.Phasing
public abstract class Phasing
Calculates the phase out of the argument. To work also with vectors, we include a multidimensional version, which only means that we act on a single component of the argument vector. We are invertable in a sense that we can recover the argument within one period.
| Nested Class Summary | |
|---|---|
static class |
Phasing.PhaseFunction
This is the function version of it. |
static class |
Phasing.PhaseMultidimensional
The multidimensional version of it, only implemented to work for one-dimensional vectors. |
| Field Summary | |
|---|---|
static String |
FREQUENCY
The name of the cycles per day variable. |
private int |
index
Act on this index, if issued with a VectorG. |
private Variable |
period
The parameter we depend on is the period. |
static String |
PERIOD
The name of the period variable. |
private Variable |
t0
If we have this, we can also do shifting. |
static String |
T0
The name of the period variable. |
| Constructor Summary | |
|---|---|
protected |
Phasing()
We act on the zero'th index. |
| Method Summary | |
|---|---|
protected double |
dephase(double phi)
We invert the function by returning the argument times the period. |
protected double |
phase(double t)
We evaluate the function by calculating the phase. |
boolean |
setVariable(Variable to)
If the name of the variable assigned here is PERIOD, we
register the variable and return true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PERIOD
public static final String T0
public static final String FREQUENCY
private int index
private Variable period
private Variable t0
| Constructor Detail |
|---|
protected Phasing()
| Method Detail |
|---|
public boolean setVariable(Variable to)
PERIOD, we
register the variable and return true.
setVariable in interface VariableDependingprotected double phase(double t)
protected double dephase(double phi)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||