<h2>org.das2.qds.math.fft.ComplexArray</h2><p>Interface for passing complex arrays to and from FFT routines. The intent is that the complex array can be backed by data in any format. Each elements is readable and writeable via get and set methods for the real and imaginary components.</p> <h2>ComplexArray( )</h2> <p></p> <hr> <a name="magnitude"></a> <h2>magnitude</h2> magnitude( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> array ) → double[] <p>returns the magnitudes of each element in an array</p> <h3>Parameters</h3> array - a ComplexArray.Double <h3>Returns:</h3> double[] <br><br> <a href="https://github.com/autoplot/dev/search?q=magnitude&unscoped_q=magnitude">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/fft/ComplexArray.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/fft/ComplexArray.html#magnitude">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/fft/ComplexArray.java#l254">[view source]</a> <br> <br> magnitude( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> array, int i ) → double<br> <hr> <a name="magnitude2"></a> <h2>magnitude2</h2> magnitude2( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> array, int i ) → double <p>returns the magnitude of an element in an array.</p> <h3>Parameters</h3> array - the complex array. <br> i - the element index <h3>Returns:</h3> double <br><br> <a href="https://github.com/autoplot/dev/search?q=magnitude2&unscoped_q=magnitude2">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/fft/ComplexArray.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/fft/ComplexArray.html#magnitude2">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/fft/ComplexArray.java#l267">[view source]</a> <br> <br> <hr> <a name="newArray"></a> <h2>newArray</h2> newArray( double[] real ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> <p>Creates a new ComplexArray from an array of real numbers. The complex components of each element in the resulting array is zero.</p> <h3>Parameters</h3> real - a double[] <h3>Returns:</h3> org.das2.qds.math.fft.ComplexArray.Double <br><br> <a href="https://github.com/autoplot/dev/search?q=newArray&unscoped_q=newArray">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/fft/ComplexArray.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/fft/ComplexArray.html#newArray">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/fft/ComplexArray.java#l177">[view source]</a> <br> <br> newArray( double[] real, double[] imag ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a><br> newArray( float[] real ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Float.html'>org.das2.qds.math.fft.ComplexArray.Float</a><br> newArray( float[] real, float[] imag ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Float.html'>org.das2.qds.math.fft.ComplexArray.Float</a><br> <hr> <a name="newArrayCopy"></a> <h2>newArrayCopy</h2> newArrayCopy( double[] real ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> <p>Creates a new ComplexArray from a float array representing real numbers, but copies the original array so that it is not modified.</p> <h3>Parameters</h3> real - a double[] <h3>Returns:</h3> org.das2.qds.math.fft.ComplexArray.Double <br><br> <a href="https://github.com/autoplot/dev/search?q=newArrayCopy&unscoped_q=newArrayCopy">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/fft/ComplexArray.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/fft/ComplexArray.html#newArrayCopy">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/fft/ComplexArray.java#l186">[view source]</a> <br> <br> <hr> <a name="realPart"></a> <h2>realPart</h2> realPart( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> array ) → double[] <p>returns the real parts of each element in an array.</p> <h3>Parameters</h3> array - a ComplexArray.Double <h3>Returns:</h3> double[] <br><br> <a href="https://github.com/autoplot/dev/search?q=realPart&unscoped_q=realPart">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/fft/ComplexArray.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/fft/ComplexArray.html#realPart">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/fft/ComplexArray.java#l243">[view source]</a> <br> <br> <hr> <a name="toString"></a> <h2>toString</h2> toString( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Float.html'>org.das2.qds.math.fft.ComplexArray.Float</a> array ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>converts a ComplexArray into an array for debugging purposes.</p> <h3>Parameters</h3> array - a ComplexArray.Float <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=toString&unscoped_q=toString">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/fft/ComplexArray.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/fft/ComplexArray.html#toString">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/fft/ComplexArray.java#l221">[view source]</a> <br> <br> toString( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/math/fft/ComplexArray/Double.html'>org.das2.qds.math.fft.ComplexArray.Double</a> array ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a><br>