binsWithin
binsWithin( QDataSet ds, QDataSet bounds ) → QDataSet
return non-zero where the bins of ds are within the bounds.
Parameters
ds - rank 2 bins dataset
bounds - a rank 1 bounding box.
Returns:
rank 1 dataset containing non-zero where the condition is true.
See Also:
Ops_w.md#within(QDataSet, QDataSet)
search for examples
view on GitHub
view source
binsWithout
binsWithout( QDataSet ds, QDataSet bounds ) → QDataSet
return non-zero where the bins of ds are outside of the bounds.
Parameters
ds - rank 2 bins dataset
bounds - a rank 1 bounding box.
Returns:
rank 1 dataset containing non-zero where the condition is true.
See Also:
binsWithin(QDataSet, QDataSet)
search for examples
view on GitHub
view source
bitwiseAnd
bitwiseAnd( QDataSet ds1, QDataSet ds2 ) → QDataSet
bitwise AND operator treats the data as (32-bit) integers, and
returns the bit-wise AND.
Parameters
ds1 -
ds2 -
Returns:
bit-wise AND.
search for examples
view on GitHub
view source
bitwiseOr
bitwiseOr( QDataSet ds1, QDataSet ds2 ) → QDataSet
bitwise OR operator treats the data as (32-bit) integers, and
returns the bit-wise OR.
Parameters
ds1 -
ds2 -
Returns:
bit-wise OR.
search for examples
view on GitHub
view source
bitwiseXor
bitwiseXor( QDataSet ds1, QDataSet ds2 ) → QDataSet
bitwise XOR (exclusive or) operator treats the data as (32-bit) integers, and
returns the bit-wise XOR. Note there is no bitwise not, and this is because
there are no shorts, bytes. So to implement bitwise not for a 16 bit number
you would have bitwiseXor( ds, dataset(2**16-1) ).
Parameters
ds1 -
ds2 -
Returns:
bit-wise XOR.
search for examples
view on GitHub
view source
buckshotInterpolate
buckshotInterpolate( QDataSet xyz, QDataSet data, QDataSet xinterp, QDataSet yinterp, QDataSet zinterp ) → QDataSet
3-D interpolation performed by tesselating the space (with 4-point
tetrahedra) and doing interpolation.
NOTE: this does not check units.
Parameters
xyz - rank 2 bundle of x,y,z data.
data - rank 1 dependent data, a function of x,y,z.
xinterp - the x locations to interpolate, rank 0, 1, or 2.
yinterp - the y locations to interpolate
zinterp - the z locations to interpolate
Returns:
the interpolated data.
search for examples
view on GitHub
view source
butterworth
butterworth( QDataSet in, int order, Datum f, boolean lowp ) → QDataSet
Perform Butterworth filter for high pass or low pass.
Parameters
in - the rank 1 waveform
order - the order of the filter (2,3,4)
f - the frequency, e.g. Units.hertz.createDatum(10)
lowp - true for low pass, false for high pass.
Returns:
the dataset in the same form.
search for examples
view on GitHub
view source
bytarr
bytarr( int len0 ) → QDataSet
create a dataset filled with zeros, stored in unsigned bytes. Each
element can contain numbers from 0 to 255.
Parameters
len0 - the zeroth dimension length
Returns:
rank 1 dataset filled with zeros.
See Also:
Ops_d.md#dblarr(int)
search for examples
view on GitHub
view source