public class Reduction
extends java.lang.Object
Constructor and Description |
---|
Reduction() |
Modifier and Type | Method and Description |
---|---|
static QDataSet |
hexbin(QDataSet ds,
QDataSet z)
reduce the buckshot scatter data by laying it out on a 2-D hexgrid and
accumulating the hits to each cell.
|
static QDataSet |
histogram2D(QDataSet ds,
QDataSet xxx,
QDataSet yyy)
reduce the buckshot scatter data by laying it out on a 2-D grid and
accumulating the hits to each cell.
|
static QDataSet |
lastPointAt2D(QDataSet ds,
QDataSet xx,
QDataSet yy,
QDataSet xxx,
QDataSet yyy)
return the value of the last data point at each location.
|
static QDataSet |
reduce2D(QDataSet ds,
QDataSet xLimit,
QDataSet yLimit)
produce a simpler version of the dataset by averaging adjacent data.
|
static QDataSet |
reducex(QDataSet ds,
QDataSet xLimit)
produce a simpler version of the dataset by averaging data adjacent in X.
|
static QDataSet |
reducex(QDataSet ds,
QDataSet xLimit,
boolean xregular)
produce a simpler version of the dataset by averaging data adjacent in X.
|
public static QDataSet reducex(QDataSet ds, QDataSet xLimit)
ds
- rank 1 or rank 2 dataset. Must have DEPEND_0 (presently) and be a qube. If this is null, then the result is null.xLimit
- the size of the bins or null to indicate no limit.public static QDataSet reducex(QDataSet ds, QDataSet xLimit, boolean xregular)
ds
- rank 1 or rank 2 dataset. Must have DEPEND_0 (presently) and be a qube. If this is null, then the result is null.xLimit
- the size of the bins or null to indicate no limit.xregular
- if true, then return xtags with a uniform cadence; if false, return averages of x as well, and don't grid x.public static QDataSet reduce2D(QDataSet ds, QDataSet xLimit, QDataSet yLimit)
ds
- rank 1 dataset. Must have DEPEND_0 (presently)xLimit
- the size of the bins or null to indicate no limit.yLimit
- the size of the bins or null to indicate no limit.public static QDataSet hexbin(QDataSet ds, QDataSet z)
ds
- rank1 Y(X)z
- null or data to averagejava.lang.IllegalArgumentException
- when the units cannot be convertedOps.histogram2d(org.das2.qds.QDataSet, org.das2.qds.QDataSet, int[], org.das2.qds.QDataSet, org.das2.qds.QDataSet)
,
https://cran.r-project.org/web/packages/hexbin/vignettes/hexagon_binning.pdf
public static QDataSet lastPointAt2D(QDataSet ds, QDataSet xx, QDataSet yy, QDataSet xxx, QDataSet yyy)
ds
- rank1 dataxx
- rank 1 X values for each data pointyy
- rank 1 Y values for each data pointxxx
- rank 1 dataset describes the bins, which must be uniformly linearly spaced, or log spaced. Uses SCALE_TYPE property.yyy
- rank 1 dataset describes the bins, which must be uniformly linearly spaced, or log spaced.java.lang.IllegalArgumentException
- when the units cannot be convertedOps.histogram2d(org.das2.qds.QDataSet, org.das2.qds.QDataSet, int[], org.das2.qds.QDataSet, org.das2.qds.QDataSet)
public static QDataSet histogram2D(QDataSet ds, QDataSet xxx, QDataSet yyy)
ds
- rank1 Y(X)xxx
- rank1 dataset describes the bins, which must be uniformly linearly spaced, or log spaced. Uses SCALE_TYPE property.yyy
- rank1 dataset describes the bins, which must be uniformly linearly spaced, or log spaced.java.lang.IllegalArgumentException
- when the units cannot be convertedOps.histogram2d(org.das2.qds.QDataSet, org.das2.qds.QDataSet, int[], org.das2.qds.QDataSet, org.das2.qds.QDataSet)