taggen
taggen( double base, double dcadence, int len0, Units units ) → org.das2.qds.MutablePropertyDataSet
creates tags. First tag will be start and they will increase by cadence. Units specifies
the units of each tag.
Parameters
base - a double
dcadence - a double
len0 - an int
units - an Units
Returns:
an org.das2.qds.MutablePropertyDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tan
tan( QDataSet ds ) → QDataSet
element-wise trigonometric tangent (tan) function
Parameters
ds - the angles for the values in radians or degrees
Returns:
the tangent of each angle
See Also:
Math#tan(double)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tan( double ds ) → double
tan( Object ds ) → QDataSet
tanh
tanh( QDataSet ds ) → QDataSet
element-wise tanh.
Parameters
ds - a QDataSet
Returns:
a QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tanh( double ds ) → double
tanh( Object ds ) → QDataSet
timeShift
timeShift( QDataSet ds, Datum delta ) → QDataSet
Shift the DEPEND_0 or the time column of a rank 2 dataset by the amount. For example, to
compare two time series recorded with times from different time zones.
Parameters
ds - the data which is a time series.
delta - the amount to add to each timetag.
Returns:
data in the same form but with the times shifted.
See Also:
Schemes#isTimeSeries(QDataSet)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
timegen
timegen( String baseTime, String cadence, int len0 ) → QDataSet
returns rank 1 dataset with values that are times.
Parameters
baseTime - e.g. "2003-02-04T00:00"
cadence - e.g. "4.3 sec" "1 day"
len0 - the number of elements.
Returns:
a QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toDegrees
toDegrees( QDataSet ds ) → QDataSet
convert the data to degrees by multiplying each element by 180/PI.
This does not check the units of the data, but a future version might.
Parameters
ds - values in radians
Returns:
the data in degrees
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toDegrees( Object ds ) → QDataSet
toRadians
toRadians( QDataSet ds ) → QDataSet
convert the data to radians by multiplying each element by PI/180.
This does not check the units of the data, but a future version might.
Parameters
ds - data values in degrees
Returns:
the data in radians
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toRadians( Object ds ) → QDataSet
toTimeDataSet
toTimeDataSet( QDataSet years, QDataSet mons, QDataSet days, QDataSet hour, QDataSet minute, QDataSet second, QDataSet nano ) → QDataSet
return a rank 1 dataset of times. All inputs should be rank 1 dataset (for now) or null.
Parameters
years - the years. (2010) Less than 100 is interpreted as 19xx.
mons - the months (1..12), or null. If null, then days are day of year. These are interpreted as integers
days - the day of month (1..28) or day of year. This may be fractional.
hour - null or the hours of the day.
minute - null or the minutes of the day
second - null or the seconds of the day
nano - null or the nanoseconds (1e-9) of the day
Returns:
rank 1 time data set.
See Also:
rgbColorDataset(QDataSet, QDataSet, QDataSet)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toTimeDataSet( Object years, Object mons, Object days, Object hour, Object minute, Object second, Object nano ) → QDataSet
total
total( QDataSet ds ) → double
return the total of all the elements in the dataset. If there are
invalid measurements, then fill is returned.
Does not support BINS or BUNDLE dimensions.
Parameters
ds - a QDataSet
Returns:
the unweighted total of the dataset, or -1e31 if fill was encountered.
See Also:
total(QDataSet, int) total, which should be used instead.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
total( QDataSet ds, ProgressMonitor mon ) → double
total( Object ds1 ) → double
total( QDataSet ds, int dim ) → QDataSet
total( QDataSet ds, int dim, ProgressMonitor mon ) → QDataSet
transpose
transpose( QDataSet ds ) → QDataSet
transpose the rank 2 or rank 1 dataset. result[i,j]= ds[j,i] for each i,j;
or in the case of rank 1, the DEPEND_0 (x) becomes a dependent on the data (y).
Parameters
ds - rank 2 dataset
Returns:
rank 2 dataset
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
transpose( Object ds ) → QDataSet
triangulate
triangulate( QDataSet xx, QDataSet yy ) → QDataSet
return a triangle tesselation of the space identified by
rank 1 xx and yy.
Parameters
xx - rank 1 dataset
yy - rank 1 dataset
Returns:
rank 2 ds[n,3] dataset.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
trim
trim( QDataSet ds, int st, int en ) → QDataSet
trim the dataset to the indices on the zeroth dimension. Note
the trim function can also be called directly.
Parameters
ds - the dataset to be trimmed.
st - the start index
en - the non-inclusive end index
Returns:
a QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
trim( QDataSet ds, DatumRange dr ) → QDataSet
trim( QDataSet ds, Object odr ) → QDataSet
trim( QDataSet ds, QDataSet st, QDataSet en ) → QDataSet
trim( int dim, QDataSet ds, int st, int en ) → QDataSet
trim( int dim, QDataSet ds, QDataSet st, QDataSet en ) → QDataSet
trim1
trim1( QDataSet ds, QDataSet st, QDataSet en ) → QDataSet
return the trim of the dataset ds where its DEPEND_1 (typically ytags) are
within the range dr. For example,
if ds was frequencies from 10 Hz to 1e8 Hz, trim1( ds, 100Hz, 1000Hz ) would
return just the data in this range.
Parameters
ds - the dataset to be trimmed, with a rank 1 monotonic DEPEND_1.
st - rank 0 min value
en - rank 0 max value
Returns:
the subset of the data.
See Also:
slice1(QDataSet, QDataSet)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
trim1( QDataSet ds, int st, int en ) → QDataSet