<h2>org.das2.qds.IDataSet</h2><p>rank 0,1,2,3 or 4 dataset backed by int array (4 byte signed numbers). Note access to the array is still done via doubles.</p> <hr> <a name="version"></a> <h2>version</h2> <p></p> <hr> <a name="addValue"></a> <h2>addValue</h2> addValue( int i0, double value ) → void <p>add this value to the current value.</p> <h3>Parameters</h3> i0 - the index <br> value - the value, which is cast to this internal type. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addValue&unscoped_q=addValue">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#addValue">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l356">[view source]</a> <br> <br> addValue( int i0, int i1, double value ) → void<br> <hr> <a name="capability"></a> <h2>capability</h2> capability( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> clazz ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> <p>TODO: this is untested, but is left in to demonstrate how the capability method should be implemented. Clients should use this instead of casting the class to the capability class.</p> <h3>Parameters</h3> clazz - the class, such as WritableDataSet.class <h3>Returns:</h3> null or the capability if exists, such as WritableDataSet <br><br> <a href="https://github.com/autoplot/dev/search?q=capability&unscoped_q=capability">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#capability">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l475">[view source]</a> <br> <br> <hr> <a name="create"></a> <h2>create</h2> create( int[] qube ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>Makes an array from array of dimension sizes. The result will have rank qube.length().</p> <h3>Parameters</h3> qube - array specifying the rank and size of each dimension <h3>Returns:</h3> the array as a QDataSet <br><br> <a href="https://github.com/autoplot/dev/search?q=create&unscoped_q=create">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#create">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l85">[view source]</a> <br> <br> <hr> <a name="createRank0"></a> <h2>createRank0</h2> createRank0( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>create a rank 0 dataset backed by array of ints.</p> <h3>Returns:</h3> rank 0 dataset backed by double. <br><br> <a href="https://github.com/autoplot/dev/search?q=createRank0&unscoped_q=createRank0">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#createRank0">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l33">[view source]</a> <br> <br> <hr> <a name="createRank1"></a> <h2>createRank1</h2> createRank1( int len0 ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>create a rank 1 dataset backed by array of ints.</p> <h3>Parameters</h3> len0 - length of the dimension <h3>Returns:</h3> rank 1 qube dataset of backed by array of ints. <br><br> <a href="https://github.com/autoplot/dev/search?q=createRank1&unscoped_q=createRank1">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#createRank1">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l42">[view source]</a> <br> <br> <hr> <a name="createRank2"></a> <h2>createRank2</h2> createRank2( int len0, int len1 ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>create a rank 2 qube dataset backed by array of ints.</p> <h3>Parameters</h3> len0 - length of the dimension <br> len1 - length of the dimension <h3>Returns:</h3> rank 2 qube dataset of backed by array of ints. <br><br> <a href="https://github.com/autoplot/dev/search?q=createRank2&unscoped_q=createRank2">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#createRank2">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l52">[view source]</a> <br> <br> <hr> <a name="createRank3"></a> <h2>createRank3</h2> createRank3( int len0, int len1, int len2 ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>create a rank 3 qube dataset backed by array of ints.</p> <h3>Parameters</h3> len0 - length of the dimension <br> len1 - length of the dimension <br> len2 - length of the dimension <h3>Returns:</h3> rank 3 qube dataset of backed by array of shorts. <br><br> <a href="https://github.com/autoplot/dev/search?q=createRank3&unscoped_q=createRank3">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#createRank3">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l63">[view source]</a> <br> <br> <hr> <a name="createRank4"></a> <h2>createRank4</h2> createRank4( int len0, int len1, int len2, int len3 ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>create a rank 4 qube dataset backed by array of ints.</p> <h3>Parameters</h3> len0 - length of the dimension <br> len1 - length of the dimension <br> len2 - length of the dimension <br> len3 - length of the dimension <h3>Returns:</h3> rank 4 qube dataset of backed by array of ints. <br><br> <a href="https://github.com/autoplot/dev/search?q=createRank4&unscoped_q=createRank4">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#createRank4">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l75">[view source]</a> <br> <br> <hr> <a name="putValue"></a> <h2>putValue</h2> putValue( double value ) → void <p></p> <h3>Parameters</h3> value - a double <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=putValue&unscoped_q=putValue">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#putValue">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l284">[view source]</a> <br> <br> putValue( int i0, double value ) → void<br> putValue( int i0, int i1, double value ) → void<br> putValue( int i0, int i1, int i2, double value ) → void<br> putValue( int i0, int i1, int i2, int i3, double value ) → void<br> <hr> <a name="slice"></a> <h2>slice</h2> slice( int i ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>the slice operator is better implemented here. Presently, we use System.arraycopy to copy out the data, but this could be re-implemented along with an offset parameter so the original data can be used to back the data.</p> <h3>Parameters</h3> i - the index <h3>Returns:</h3> a rank N-1 slice of the data. <br><br> <a href="https://github.com/autoplot/dev/search?q=slice&unscoped_q=slice">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#slice">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l413">[view source]</a> <br> <br> <hr> <a name="trim"></a> <h2>trim</h2> trim( int start, int end ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>trim operator copies the data into a new dataset.</p> <h3>Parameters</h3> start - the first index <br> end - the last index, exclusive <h3>Returns:</h3> a shorter dataset of the same rank. <br><br> <a href="https://github.com/autoplot/dev/search?q=trim&unscoped_q=trim">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#trim">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l436">[view source]</a> <br> <br> <hr> <a name="value"></a> <h2>value</h2> value( ) → double <p></p> <h3>Returns:</h3> double <br><br> <a href="https://github.com/autoplot/dev/search?q=value&unscoped_q=value">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#value">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l204">[view source]</a> <br> <br> value( int i0 ) → double<br> value( int i0, int i1 ) → double<br> value( int i0, int i1, int i2 ) → double<br> value( int i0, int i1, int i2, int i3 ) → double<br> <hr> <a name="wrap"></a> <h2>wrap</h2> wrap( int[] data, int[] qube ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a> <p>Wraps an array from array of dimension sizes. The result will have rank qube.length(). For rank 0, data is 1-element array.</p> <h3>Parameters</h3> data - array containing the data, with the last dimension contiguous in memory. <br> qube - array specifying the rank and size of each dimension <h3>Returns:</h3> the array as a QDataSet <br><br> <a href="https://github.com/autoplot/dev/search?q=wrap&unscoped_q=wrap">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/IDataSet.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/IDataSet.html#wrap">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/IDataSet.java#l109">[view source]</a> <br> <br> wrap( int[] back, int rank, int len0, int len1, int len2 ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a><br> wrap( int[] back, int rank, int len0, int len1, int len2, int len3 ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a><br> wrap( int[] back ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a><br> wrap( int[] back, int nx, int ny ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a><br> wrap( int[] back, int nx, int ny, int nz ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/IDataSet.html'>org.das2.qds.IDataSet</a><br>