org.das2.qds.ConstantDataSet
efficient dataset that has no properties and one value. This can be used as a marker
interface too, where the client can inspect the type and just get the valid value once.
See also ReplicateDataSet and TagGenDataSet
ConstantDataSet( int len, double value )
create a rank 1 dataset of the given length.
capability
capability( java.lang.Class clazz ) → Object
Parameters
clazz - a java.lang.Class
Returns:
java.lang.Object
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
create
create( double value, int[] qube ) → org.das2.qds.ConstantDataSet
create a constant dataset with the value and having the dimensions
given in qube.
Parameters
value - the value for the dataset.
qube - number of elements in each dimension
Returns:
the dataset.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
length
length( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
length( int i ) → int
length( int i, int j ) → int
length( int i, int j, int k ) → int
property
property( String name ) → Object
Parameters
name - a String
Returns:
java.lang.Object
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
property( String name, int i ) → Object
rank
rank( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
slice
slice( int i ) → QDataSet
Parameters
i - an int
Returns:
org.das2.qds.QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
svalue
svalue( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
trim
trim( int start, int end ) → QDataSet
Parameters
start - an int
end - an int
Returns:
org.das2.qds.QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
value
value( ) → double
Returns:
double
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
value( int i0 ) → double
value( int i0, int i1 ) → double
value( int i0, int i1, int i2 ) → double
value( int i0, int i1, int i2, int i3 ) → double