public class VectorUtil
extends java.lang.Object
Constructor and Description |
---|
VectorUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
closestXTag(DataSet ds,
Datum datum) |
static int |
closestXTag(DataSet ds,
double x,
Units units) |
static void |
dumpToAsciiStream(VectorDataSet vds,
Datum xmin,
Datum xmax,
java.io.OutputStream out) |
static void |
dumpToAsciiStream(VectorDataSet vds,
java.io.OutputStream out) |
static void |
dumpToAsciiStream(VectorDataSet vds,
java.nio.channels.WritableByteChannel out) |
static void |
dumpToBinaryStream(VectorDataSet vds,
java.io.OutputStream out) |
static void |
dumpToDas2Stream(VectorDataSet vds,
java.nio.channels.WritableByteChannel out,
boolean asciiTransferTypes,
boolean sendStreamDescriptor)
write the data to a das2Stream
|
static VectorDataSet |
finiteDerivative(VectorDataSet ds,
int n)
Return the finite difference derivative of the dataset, between elements that
are n steps apart.
|
static double[] |
getXTagArrayDouble(DataSet vds,
Units units) |
static Datum |
median(VectorDataSet ds) |
static QDataSet |
reduce2D(QDataSet xds,
QDataSet ds,
int start,
int finish,
Datum xLimit,
Datum yLimit)
produce a simpler version of the dataset by averaging adjacent data.
|
static java.lang.String |
toString(VectorDataSet ds) |
public static Datum median(VectorDataSet ds)
public static void dumpToAsciiStream(VectorDataSet vds, Datum xmin, Datum xmax, java.io.OutputStream out)
public static void dumpToAsciiStream(VectorDataSet vds, java.io.OutputStream out)
public static void dumpToAsciiStream(VectorDataSet vds, java.nio.channels.WritableByteChannel out)
public static void dumpToBinaryStream(VectorDataSet vds, java.io.OutputStream out)
public static void dumpToDas2Stream(VectorDataSet vds, java.nio.channels.WritableByteChannel out, boolean asciiTransferTypes, boolean sendStreamDescriptor)
vds
- out
- asciiTransferTypes
- sendStreamDescriptor
- if false, then don't send the stream and don't closepublic static java.lang.String toString(VectorDataSet ds)
public static VectorDataSet finiteDerivative(VectorDataSet ds, int n)
public static QDataSet reduce2D(QDataSet xds, QDataSet ds, int start, int finish, Datum xLimit, Datum yLimit)
xds
- the x tagsds
- the y tagsstart
- first index.finish
- last (non-inclusive) index.xLimit
- the size of the bins or null to indicate no limit.yLimit
- the size of the bins or null to indicate no limit.