|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.DimensionNameSpaceTranslator
public class DimensionNameSpaceTranslator
Translate an array of double from one DimensionNameSpace to another. Preserves as many values as possible by matching as many names as possible
Constructor Summary | |
---|---|
DimensionNameSpaceTranslator()
|
Method Summary | |
---|---|
void |
addInvariant(int dim)
Specify a dimension index that should be cross copied regardless of naming. |
static void |
main(java.lang.String[] args)
|
void |
setDestinationDimensionNameSpace(DimensionNameSpace dns)
|
void |
setSourceDimensionNameSpace(DimensionNameSpace dns)
|
double[] |
translate(double[] sourceDar)
Copy as many values from source array to dest array as possible, pulling values by name. |
double[] |
translate(double[] sourceDar,
double[] resultDar)
Copy as many values from source array to dest array as possible, pulling values by name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DimensionNameSpaceTranslator()
Method Detail |
---|
public void addInvariant(int dim)
public void setSourceDimensionNameSpace(DimensionNameSpace dns)
public void setDestinationDimensionNameSpace(DimensionNameSpace dns)
public double[] translate(double[] sourceDar, double[] resultDar)
public double[] translate(double[] sourceDar)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |