labels
Deprecated: use labelsDataSet
labelsDataset
labelsDataset( java.lang.String[] labels, String context ) → QDataSet
create a labels dataset for tagging rows of a dataset. If the context
has been used already, including "default", then the EnumerationUnit
for the data will be preserved. labels(["red","green","blue"],"default")
will always return an equivalent (and comparable) result during a session.
Example:
dep1= labels( ["X","Y","Z"], "GSM" )
Parameters
labels - array of string labels
context - the namespace for the labels, to provide control over String→int mapping.
Returns:
rank 1 QDataSet
search for examples
view on GitHub
view source
le
le( QDataSet ds1, QDataSet ds2 ) → QDataSet
element-wise function returns 1 where ds1<=ds2.
Parameters
ds1 -
ds2 -
Returns:
org.das2.qds.QDataSet
search for examples
view on GitHub
view source
lesserOf
lesserOf( QDataSet ds1, QDataSet ds2 ) → QDataSet
element-wise function returns the smaller of ds1 and ds2.
If an element of ds1 or ds2 is fill, then the result is fill.
Parameters
ds1 -
ds2 -
Returns:
the smaller of the two, in the units of ds1.
search for examples
view on GitHub
view source
link
link( QDataSet x, QDataSet y ) → QDataSet
link is the fundamental operator where we declare that one
dataset is dependent on another. For example link(x,y) creates
a new dataset where y is the dependent variable of the independent
variable x. link is like the plot command, but doesn't plot. For example
plot(X,Y) shows a plot of Y(X),
link(X,Y) returns the dataset Y(X).
Parameters
x - rank 1 dataset
y - rank 1 or rank 2 bundle dataset
Returns:
rank 1 dataset with DEPEND_0 set to x.
search for examples
view on GitHub
view source
linspace
linspace( double min, double max, int len0 ) → QDataSet
return a rank 1 dataset with len0 linearly-spaced values, the first
is min and the last is max.
Parameters
min - double
max - double
len0 - number of elements in the result
Returns:
rank 1 dataset of linearly spaced data.
search for examples
view on GitHub
view source
logspace
logspace( double min, double max, int len0 ) → QDataSet
return a rank 1 dataset with len0 logarithmically-spaced values, the first
is min and the last is max.
Parameters
min - double
max - double
len0 - number of elements in the result
Returns:
rank 1 dataset of logarithmically spaced data.
search for examples
view on GitHub
view source
lt
lt( QDataSet ds1, QDataSet ds2 ) → QDataSet
element-wise function returns 1 where ds1<ds2.
Parameters
ds1 -
ds2 -
Returns:
org.das2.qds.QDataSet
search for examples
view on GitHub
view source