public class AggregateDataset extends LazyDatasetBase implements ILazyDataset
| Modifier and Type | Field and Description |
|---|---|
protected AggregateDataset |
base |
catchExceptions, logger, metadata, name, shape| Constructor and Description |
|---|
AggregateDataset(boolean extend,
ILazyDataset... datasets)
Create an aggregate dataset
|
| Modifier and Type | Method and Description |
|---|---|
static int[][] |
calcShapes(boolean extend,
ILazyDataset... datasets)
Calculate (possibly extended) shapes from given datasets
|
AggregateDataset |
clone()
Clone dataset
|
int |
getDType() |
Class<?> |
getElementClass() |
int |
getElementsPerItem() |
ILazyDataset |
getErrors()
Get the errors, if any.
|
int |
getSize()
The size of the dataset is the number of items in the array
|
Dataset |
getSlice(IMonitor monitor,
int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
Dataset |
getSlice(IMonitor monitor,
Slice... slice)
Get a slice of the dataset.
|
Dataset |
getSlice(IMonitor monitor,
SliceND slice)
Get a slice of the dataset.
|
Dataset |
getSlice(int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
Dataset |
getSlice(Slice... slice)
Get a slice of the dataset.
|
Dataset |
getSlice(SliceND slice)
Get a slice of the dataset.
|
AggregateDataset |
getSliceView(int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
AggregateDataset |
getSliceView(Slice... slice)
Get a slice of the dataset.
|
AggregateDataset |
getSliceView(SliceND slice)
Get a slice of the dataset.
|
AggregateDataset |
getTransposedView(int... axes)
Permute copy of dataset's axes so that given order is old order:
|
void |
setErrors(Serializable errors)
Set the errors.
|
void |
setShape(int... shape)
Set a compatible shape for dataset.
|
ILazyDataset |
squeezeEnds()
Remove dimensions of 1 from ends of shape of the dataset
|
String |
toString() |
addMetadata, checkPermutatedAxes, clearMetadata, copyMetadata, copyMetadata, createFromSerializable, dirtyMetadata, equals, findMetadataTypeSubInterfaces, getErrorMetadata, getFirstMetadata, getMetadata, getMetadata, getMetadataMap, getName, getRank, getShape, hasErrors, hashCode, reshapeMetadata, restoreMetadata, setDirty, setMetadata, setName, sliceMetadata, transposeMetadatafinalize, getClass, notify, notifyAll, wait, wait, waitaddMetadata, clearMetadata, getRank, getShape, hasErrors, setMetadatagetFirstMetadata, getMetadata, getMetadataprotected AggregateDataset base
public AggregateDataset(boolean extend, ILazyDataset... datasets)
extend - if true, extend rank by onedatasets - public static int[][] calcShapes(boolean extend, ILazyDataset... datasets)
extend - if true, extend rank by onedatasets - public Class<?> getElementClass()
getElementClass in interface ILazyDatasetgetElementClass in class LazyDatasetBasepublic int getElementsPerItem()
getElementsPerItem in interface ILazyDatasetpublic int getDType()
getDType in class LazyDatasetBasepublic int getSize()
ILazyDatasetgetSize in interface ILazyDatasetpublic void setShape(int... shape)
ILazyDatasetsetShape in interface ILazyDatasetpublic ILazyDataset squeezeEnds()
ILazyDatasetsqueezeEnds in interface ILazyDatasetpublic Dataset getSlice(int[] start, int[] stop, int[] step) throws DatasetException
ILazyDatasetgetSlice in interface ILazyDatasetstart - specifies the starting indexes (can be null for origin)stop - specifies the stopping indexes (can be null for end)step - specifies the steps in the slice (can be null for unit steps)DatasetExceptionpublic Dataset getSlice(IMonitor monitor, int[] start, int[] stop, int[] step) throws DatasetException
ILazyDatasetgetSlice in interface ILazyDatasetstart - specifies the starting indexes (can be null for origin)stop - specifies the stopping indexes (can be null for end)step - specifies the steps in the slice (can be null for unit steps)DatasetExceptionpublic Dataset getSlice(IMonitor monitor, SliceND slice) throws DatasetException
ILazyDatasetgetSlice in interface ILazyDatasetslice - an n-D sliceDatasetExceptionpublic Dataset getSlice(Slice... slice) throws DatasetException
ILazyDatasetgetSlice in interface ILazyDatasetslice - an array of slice objects (the array can be null or contain nulls)DatasetExceptionpublic Dataset getSlice(SliceND slice) throws DatasetException
ILazyDatasetgetSlice in interface ILazyDatasetslice - an n-D sliceDatasetExceptionpublic Dataset getSlice(IMonitor monitor, Slice... slice) throws DatasetException
ILazyDatasetgetSlice in interface ILazyDatasetslice - an array of slice objects (the array can be null or contain nulls)DatasetExceptionpublic AggregateDataset getSliceView(Slice... slice)
ILazyDatasetgetSliceView in interface ILazyDatasetslice - an array of slice objects (the array can be null or contain nulls)public AggregateDataset getSliceView(int[] start, int[] stop, int[] step)
ILazyDatasetgetSliceView in interface ILazyDatasetstart - specifies the starting indexes (can be null for origin)stop - specifies the stopping indexes (can be null for end)step - specifies the steps in the slice (can be null for unit steps)public AggregateDataset getSliceView(SliceND slice)
ILazyDatasetgetSliceView in interface ILazyDatasetslice - an n-D slicepublic AggregateDataset getTransposedView(int... axes)
ILazyDatasetaxisPerm = (p(0), p(1),...) => newdata(n(0), n(1),...) = olddata(o(0), o(1), ...) such that n(i) = o(p(i)) for all iI.e. for a 3D dataset (1,0,2) implies the new dataset has its 1st dimension running along the old dataset's 2nd dimension and the new 2nd is the old 1st. The 3rd dimension is left unchanged.
getTransposedView in interface ILazyDatasetaxes - if zero length then axes order reversedpublic AggregateDataset clone()
ILazyDatasetclone in interface ILazyDatasetclone in class LazyDatasetBasepublic void setErrors(Serializable errors)
ILazyDatasetsetErrors in interface ILazyDatasetsetErrors in class LazyDatasetBaseerrors - - may be null to remove the error setpublic ILazyDataset getErrors()
ILazyDatasetgetErrors in interface ILazyDatasetgetErrors in class LazyDatasetBaseCopyright © 2014–2018 Eclipse Foundation. All rights reserved.