labels

Deprecated: use labelsDataset

labels

Deprecated: use labelsDataSet

labelsDataset

labelsDataset( 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. labelsDataset(['red','green','blue'],'default') will always return an equivalent (and comparable) result during a session. Example: dep1= labelsDataset( ['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 on old javadoc] [view source]


labelsDataset

labelsDataset( String[] labels ) → QDataSet

create a labels dataset for tagging rows of a dataset. Example: array of string labels dep1= labelsDataset( ['red','green','blue'] )

Parameters

labels - a java.lang.String[]

Returns:

rank 1 QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


labelsDataset

labelsDataset( String label ) → QDataSet

create a rank 0 label dataset. dep1= labelsDataset( 'Chicago' )

Parameters

label - the string label

Returns:

rank 0 QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


labelsDataset

labelsDataset( String label, String context ) → QDataSet

create a rank 0 label dataset. dep1= labelsDataset( 'Chicago', 'cities' )

Parameters

label - the string label
context - the namespace for the labels, to provide control over String→int mapping.

Returns:

rank 0 QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


le

le( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise function returns 1 where ds1<=ds2.

Parameters

ds1 - a QDataSet
ds2 - a QDataSet

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]

le( Object ds1, Object ds2 ) → QDataSet [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 - a QDataSet
ds2 - a QDataSet

Returns:

the smaller of the two, in the units of ds1.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

lesserOf( Object ds1, Object ds2 ) → QDataSet [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 on old javadoc] [view source]


link

link( QDataSet x, QDataSet y, QDataSet z ) → QDataSet

link is the fundamental operator where we declare that one dataset is dependent on another. For example link(x,y,z) creates a new dataset where z is the dependent variable of the independent variables x and y. link is like the plot command, but doesn't plot. For example

   plot(x,y,z) shows a plot of Z(X,Y),
   link(x,y,z) returns the dataset Z(X,Y).
Note if z is a rank 1 dataset, then a bundle dataset Nx3 is returned, and names are assigned to the datasets

Parameters

x - rank 1 dataset
y - rank 1 dataset
z - rank 1 or 2 dataset.

Returns:

rank 1 or 2 dataset with DEPEND_0 and DEPEND_1 set to X and Y.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


link

link( QDataSet d0, QDataSet d1, QDataSet d2, QDataSet z ) → QDataSet

like bundle, but declare the last dataset is dependent on the first three.

Parameters

d0 - rank 1 dataset
d1 - rank 1 dataset
d2 - rank 1 dataset
z - rank 1 or rank 3 dataset.

Returns:

rank 2 bundle when z is rank 1, or a rank 3 dataset when z is rank 3.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


link

link( QDataSet d0, QDataSet d1, QDataSet d2, QDataSet d3, QDataSet z ) → QDataSet

like bundle, but declare the last dataset is dependent on the first three.

Parameters

d0 - rank 1 dataset
d1 - rank 1 dataset
d2 - rank 1 dataset
d3 - rank 1 dataset
z - rank 1 or rank 4 dataset.

Returns:

rank 2 bundle when z is rank 1, or a rank 3 dataset when z is rank 3.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

link( Object x, Object y ) → QDataSet [view source]
link( Object x, Object y, Object z ) → QDataSet [view source]
link( Object d0, Object d1, Object d2, Object z ) → QDataSet [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 on old javadoc] [view source]


linspace

linspace( Object omin, Object omax, int len0 ) → QDataSet

return a rank 1 dataset with len0 linearly-spaced values, the first is min and the last is max.

Parameters

omin - rank 0 dataset
omax - rank 0 dataset
len0 - number of elements in the result

Returns:

rank 1 dataset of linearly spaced data.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


log

log( QDataSet ds ) → QDataSet

element-wise natural logarithm.

Parameters

ds - a QDataSet

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]

log( double ds1 ) → double [view source]
log( Object ds1 ) → QDataSet [view source]

log10

log10( QDataSet ds ) → QDataSet

element-wise base 10 logarithm.

Parameters

ds - a QDataSet

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]

log10( double ds1 ) → double [view source]
log10( Object ds1 ) → QDataSet [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 on old javadoc] [view source]


logspace

logspace( Object omin, Object omax, int len0 ) → QDataSet

return a rank 1 dataset with len0 logarithmically-spaced values, the first is min and the last is max.

Parameters

omin - rank 0 dataset
omax - rank 0 dataset
len0 - number of elements in the result

Returns:

rank 1 dataset of logarithmically spaced data.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


lonarr

lonarr( int len0 ) → QDataSet

create a dataset filled with zeros, stored in 8-byte longs, suitable for storing cdf_tt2000 times..

Parameters

len0 - the zeroth dimension length

Returns:

rank 1 dataset filled with zeros.

See Also:

zeros(int)
dblarr(int)


[search for examples] [view on GitHub] [view on old javadoc] [view source]


lonarr

lonarr( int len0, int len1 ) → QDataSet

create a rank 2 dataset filled with zeros, stored in 8-byte longs.

Parameters

len0 - the length of the zeroth dimension.
len1 - the length of the first dimension.

Returns:

rank 2 dataset filled with zeros.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


lt

lt( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise function returns 1 where ds1<ds2.

Parameters

ds1 - a QDataSet
ds2 - a QDataSet

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]

lt( Object ds1, Object ds2 ) → QDataSet [view source]