<h2>org.das2.qds.ArrayDataSet</h2><p>ArrayDataSet is the abstract base class for QDataSets which are backed by
 Java arrays  For example, DDataSet is a QDataSet which uses a double array
 to store its data.  Data is stored in 1-D Java arrays for performance, 
 inspired by https://www.cs.cmu.edu/~artigas/papers/cacm01.pdf.  Note for 
 modern versions of Java, Arrays of Arrays are implemented with no performance
 cost.
 
 A number of static methods were initially defined in DDataSet, then
 copied into FDataSet and others when they were made.  This super implementation
 will parent all such datasets and provide common methods.</p>
<hr>
<a name="about"></a>
<h2>about</h2>
about(  ) &rarr; void

<p>print some info about this ArrayDataSet.</p>

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=about&unscoped_q=about">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#about">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l1132">[view source]</a>
<br>
<br>
<hr>
<a name="append"></a>
<h2>append</h2>
append( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a> ds ) &rarr; void

<p>append the dataset with the same geometry but different number of records (zeroth dim)
 to this.  An IllegalArgumentException is thrown when there is not enough room.  
 See grow(newRecCount).
 Not thread safe--we need to go through and make it so...</p>

<h3>Parameters</h3>
ds - an ArrayDataSet

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=append&unscoped_q=append">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#append">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l458">[view source]</a>
<br>
<br>
append( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a> ds1, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a> ds2 ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a><br>
<hr>
<a name="canAppend"></a>
<h2>canAppend</h2>
canAppend( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a> ds ) &rarr; boolean

<p>return true if the dataset can be appended.  Note this assumes that the
 same length, etc.  This just checks that we have the number of spare records
 in the backing store.</p>

<h3>Parameters</h3>
ds - the dataset to test

<h3>Returns:</h3>
true if the dataset can be appended.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=canAppend&unscoped_q=canAppend">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#canAppend">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l520">[view source]</a>
<br>
<br>
<hr>
<a name="copy"></a>
<h2>copy</h2>
copy( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/LongReadAccess.html'>org.das2.qds.LongReadAccess</a> lra ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p></p>

<h3>Parameters</h3>
ds - a QDataSet
<br>
lra - a LongReadAccess

<h3>Returns:</h3>
org.das2.qds.ArrayDataSet

<br><br>
<a href="https://github.com/autoplot/dev/search?q=copy&unscoped_q=copy">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#copy">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l613">[view source]</a>
<br>
<br>
copy( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a><br>
copy( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a><br>
<hr>
<a name="create"></a>
<h2>create</h2>
create( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, int[] qube ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>create a dataset with the backing type and the dimensions given.
 The following component types are supported: double.class, float.class,
 long.class, int.class, short.class, and byte.class.</p>

<h3>Parameters</h3>
c - the backing type, such as double.class, float.class, etc.
<br>
qube - dimensions of the dataset

<h3>Returns:</h3>
the dataset
<h3>See Also:</h3>
<a href='null'>getComponentType()</a> <br>
<a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/BufferDataSet which also supports unsigned types/.html'>BufferDataSet which also supports unsigned types.</a> which also supports unsigned types.<br>
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#create">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l79">[view source]</a>
<br>
<br>
<hr>
<a name="createRank0"></a>
<h2>createRank0</h2>
createRank0( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>create a rank 0 dataset of the class, which can be 
 double.class, float.class, long.class, int.class, short.class and byte.class</p>

<h3>Parameters</h3>
c - the primitive class of each element.

<h3>Returns:</h3>
the ArrayDataSet
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#createRank0">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l95">[view source]</a>
<br>
<br>
<hr>
<a name="createRank1"></a>
<h2>createRank1</h2>
createRank1( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, int len0 ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>create a rank 1 dataset of the class, which can be 
 double.class, float.class, long.class, int.class, short.class and byte.class</p>

<h3>Parameters</h3>
c - the primitive class of each element.
<br>
len0 - the length of the dimension

<h3>Returns:</h3>
the ArrayDataSet
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#createRank1">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l112">[view source]</a>
<br>
<br>
<hr>
<a name="createRank2"></a>
<h2>createRank2</h2>
createRank2( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, int len0, int len1 ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>create a rank 2 dataset of the class, which can be 
 double.class, float.class, long.class, int.class, short.class and byte.class</p>

<h3>Parameters</h3>
c - the primitive class of each element.
<br>
len0 - the length of the dimension
<br>
len1 - the length of the dimension

<h3>Returns:</h3>
the ArrayDataSet
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#createRank2">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l130">[view source]</a>
<br>
<br>
<hr>
<a name="createRank3"></a>
<h2>createRank3</h2>
createRank3( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, int len0, int len1, int len2 ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>create a rank 3 dataset of the class, which can be 
 double.class, float.class, long.class, int.class, short.class and byte.class</p>

<h3>Parameters</h3>
c - the primitive class of each element.
<br>
len0 - the length of the dimension
<br>
len1 - the length of the dimension
<br>
len2 - the length of the dimension

<h3>Returns:</h3>
the ArrayDataSet
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#createRank3">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l149">[view source]</a>
<br>
<br>
<hr>
<a name="createRank4"></a>
<h2>createRank4</h2>
createRank4( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, int len0, int len1, int len2, int len3 ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>create a rank 4 dataset of the class, which can be 
 double.class, float.class, long.class, int.class, short.class and byte.class</p>

<h3>Parameters</h3>
c - the primitive class of each element.
<br>
len0 - the length of the dimension
<br>
len1 - the length of the dimension
<br>
len2 - the length of the dimension
<br>
len3 - the length of the dimension

<h3>Returns:</h3>
the ArrayDataSet
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#createRank4">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l169">[view source]</a>
<br>
<br>
<hr>
<a name="flattenArray"></a>
<h2>flattenArray</h2>
flattenArray( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> array, int[] qube ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a>

<p></p>

<h3>Parameters</h3>
array - an Object
<br>
qube - an int[]

<h3>Returns:</h3>
java.lang.Object

<br><br>
<a href="https://github.com/autoplot/dev/search?q=flattenArray&unscoped_q=flattenArray">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#flattenArray">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l180">[view source]</a>
<br>
<br>
<hr>
<a name="getComponentType"></a>
<h2>getComponentType</h2>
getComponentType(  ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a>

<p>return the component type of the backing array, such as double.class.</p>

<h3>Returns:</h3>
the component type of the backing array.
<h3>See Also:</h3>
<a href='null'>create(java.lang.Class, int[])</a> <br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getComponentType&unscoped_q=getComponentType">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#getComponentType">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l399">[view source]</a>
<br>
<br>
<hr>
<a name="grow"></a>
<h2>grow</h2>
grow( int newRecCount ) &rarr; void

<p>grow the internal store so that append may be used to resize the dataset.</p>

<h3>Parameters</h3>
newRecCount - new number of records, which includes the old records.

<h3>Returns:</h3>
void (returns nothing)

<h3>See Also:</h3>
<a href='null'>putLength(int)</a> <br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=grow&unscoped_q=grow">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#grow">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l421">[view source]</a>
<br>
<br>
<hr>
<a name="guessBackingStore"></a>
<h2>guessBackingStore</h2>
guessBackingStore( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a>

<p>guess the type of the backing store, returning double.class
 if it cannot be determined.</p>

<h3>Parameters</h3>
ds - the dataset

<h3>Returns:</h3>
the backing store class, one of double.class, float.class, long.class, int.class, short.class, or byte.class.
<h3>See Also:</h3>
<a href='null'>copy(QDataSet)</a> copy<br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=guessBackingStore&unscoped_q=guessBackingStore">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#guessBackingStore">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l784">[view source]</a>
<br>
<br>
<hr>
<a name="jvmMemory"></a>
<h2>jvmMemory</h2>
jvmMemory(  ) &rarr; int

<p>returns the size of the dataset in bytes.</p>

<h3>Returns:</h3>
the size of the dataset in bytes.
<h3>See Also:</h3>
<a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/buffer/BufferDataSet which stores data outside of the JVM/.html'>org.das2.qds.buffer.BufferDataSet which stores data outside of the JVM.</a> which stores data outside of the JVM.<br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=jvmMemory&unscoped_q=jvmMemory">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#jvmMemory">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l1124">[view source]</a>
<br>
<br>
<hr>
<a name="length"></a>
<h2>length</h2>
length(  ) &rarr; int

<p></p>

<h3>Returns:</h3>
int

<br><br>
<a href="https://github.com/autoplot/dev/search?q=length&unscoped_q=length">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#length">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l365">[view source]</a>
<br>
<br>
length( int i ) &rarr; int<br>
length( int i0, int i1 ) &rarr; int<br>
length( int i0, int i1, int i2 ) &rarr; int<br>
<hr>
<a name="maybeCopy"></a>
<h2>maybeCopy</h2>
maybeCopy( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>Copy the dataset to an ArrayDataSet only if the dataset is not 
 already an ArrayDataSet that is mutable.</p>

<h3>Parameters</h3>
ds - the dataset to copy, which may be an ArrayDataSet

<h3>Returns:</h3>
an ArrayDataSet.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=maybeCopy&unscoped_q=maybeCopy">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#maybeCopy">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l543">[view source]</a>
<br>
<br>
maybeCopy( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a><br>
<hr>
<a name="monotonicSubset"></a>
<h2>monotonicSubset</h2>
monotonicSubset( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a> ds ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>ensure that there are no non-monotonic or repeat records, by removing
 the first N-1 records of N repeated records.</p>

<h3>Parameters</h3>
ds - ArrayDataSet, which must be writable.

<h3>Returns:</h3>
dataset, possibly with records removed.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=monotonicSubset&unscoped_q=monotonicSubset">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#monotonicSubset">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l286">[view source]</a>
<br>
<br>
<hr>
<a name="monotonicSubset2"></a>
<h2>monotonicSubset2</h2>
monotonicSubset2( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a> ds ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>ensure that there are no non-monotonic or repeat records, by starting at the middle
 of the dataset and finding the monotonic subsection.  The input need not be writable.</p>

<h3>Parameters</h3>
ds - ArrayDataSet, which must be writable.

<h3>Returns:</h3>
dataset, possibly with records removed.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=monotonicSubset2&unscoped_q=monotonicSubset2">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#monotonicSubset2">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l247">[view source]</a>
<br>
<br>
<hr>
<a name="putLength"></a>
<h2>putLength</h2>
putLength( int len ) &rarr; void

<p>Shorten the dataset by changing it's dim 0 length parameter.  
 The same backing array is used, so the element that remain will be the same.
 This can only be used to shorten datasets, see grow to lengthen.</p>

<h3>Parameters</h3>
len - new number of records

<h3>Returns:</h3>
void (returns nothing)

<h3>See Also:</h3>
<a href='null'>grow(int)</a> <br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=putLength&unscoped_q=putLength">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#putLength">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l410">[view source]</a>
<br>
<br>
<hr>
<a name="rank"></a>
<h2>rank</h2>
rank(  ) &rarr; int

<p></p>

<h3>Returns:</h3>
int

<br><br>
<a href="https://github.com/autoplot/dev/search?q=rank&unscoped_q=rank">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#rank">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l360">[view source]</a>
<br>
<br>
<hr>
<a name="setUnits"></a>
<h2>setUnits</h2>
setUnits( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/Units.html'>Units</a> units ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a>

<p>set the units for this dataset.  This is a convenience method
 intended to encourage setting the data units.  For example in Jython:
<blockquote><pre>
ds= linspace(0.,10.,100).setUnits( Units.seconds )
</pre></blockquote></p>

<h3>Parameters</h3>
units - units object, like Units.seconds

<h3>Returns:</h3>
this dataset.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=setUnits&unscoped_q=setUnits">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#setUnits">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l1108">[view source]</a>
<br>
<br>
<hr>
<a name="toString"></a>
<h2>toString</h2>
toString(  ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p></p>

<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#toString">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l1115">[view source]</a>
<br>
<br>
<hr>
<a name="wrap"></a>
<h2>wrap</h2>
wrap( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> array, int[] qube, boolean copy ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ArrayDataSet.html'>org.das2.qds.ArrayDataSet</a>

<p>return the array as ArrayDataSet  The array must be a 1-D array and the
 dimensions of the result are provided in qube.</p>

<h3>Parameters</h3>
array - 1-D array
<br>
qube - dimensions of the dataset
<br>
copy - copy the data so that original data is not modified with putValue

<h3>Returns:</h3>
ArrayDataSet
<h3>See Also:</h3>
<a href='null'>create(java.lang.Class, int[])</a> <br>
<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/ArrayDataSet.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ArrayDataSet.html#wrap">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ArrayDataSet.java#l214">[view source]</a>
<br>
<br>