public interface CompoundDataset extends Dataset
ARRAYFLOAT32, ARRAYFLOAT64, ARRAYINT16, ARRAYINT32, ARRAYINT64, ARRAYINT8, ARRAYMUL, BOOL, COMPLEX, COMPLEX128, COMPLEX64, DATE, FLOAT, FLOAT32, FLOAT64, INT, INT16, INT32, INT64, INT8, OBJECT, RGB, serialVersionUID, STRING| Modifier and Type | Method and Description |
|---|---|
Dataset |
asNonCompoundDataset(boolean shareData)
Get a non-compound dataset version
|
CompoundDataset |
cast(boolean repeat,
int dtype,
int isize)
Cast a dataset
|
CompoundDataset |
cast(int dtype)
Cast a dataset
|
CompoundDataset |
clone()
Clone dataset, making new copy of data
|
void |
copyElements(Dataset destination,
int element)
Copy chosen elements from each item to another dataset
|
CompoundDataset |
fill(Object obj)
Fill dataset with given object
|
CompoundDataset |
flatten()
Flatten shape
|
CompoundDataset |
getBroadcastView(int... shape) |
CompoundDataset |
getBy1DIndex(IntegerDataset index)
This is modelled after the NumPy get item with an index dataset
|
CompoundDataset |
getByBoolean(Dataset selection)
This is modelled after the NumPy get item with a condition specified by a boolean dataset
|
CompoundDataset |
getByIndexes(Object... indexes)
This is modelled after the NumPy get item with an array of indexing objects
|
byte[] |
getByteArray() |
byte[] |
getByteArray(int... pos) |
byte[] |
getByteArray(int i) |
byte[] |
getByteArray(int i,
int j) |
double[] |
getDoubleArray() |
void |
getDoubleArray(double[] darray)
Get first item as a double array
|
void |
getDoubleArray(double[] darray,
int... pos)
Get an item as a double array
|
void |
getDoubleArray(double[] darray,
int i)
Get an item as a double array
|
void |
getDoubleArray(double[] darray,
int i,
int j)
Get an item as a double array
|
double[] |
getDoubleArray(int... pos) |
double[] |
getDoubleArray(int i) |
double[] |
getDoubleArray(int i,
int j) |
void |
getDoubleArrayAbs(int index,
double[] darray)
Get an item as a double array
|
Dataset |
getElements(int element)
Get chosen elements from each item as a dataset
|
Dataset |
getElementsView(int element)
Get chosen elements from each item as a view on dataset
|
CompoundDataset |
getErrors()
Get the error array from the dataset of same shape.
|
float[] |
getFloatArray() |
float[] |
getFloatArray(int... pos) |
float[] |
getFloatArray(int i) |
float[] |
getFloatArray(int i,
int j) |
int[] |
getIntArray() |
int[] |
getIntArray(int... pos) |
int[] |
getIntArray(int i) |
int[] |
getIntArray(int i,
int j) |
long[] |
getLongArray() |
long[] |
getLongArray(int... pos) |
long[] |
getLongArray(int i) |
long[] |
getLongArray(int i,
int j) |
short[] |
getShortArray() |
short[] |
getShortArray(int... pos) |
short[] |
getShortArray(int i) |
short[] |
getShortArray(int i,
int j) |
CompoundDataset |
getSlice(IMonitor mon,
int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
CompoundDataset |
getSlice(IMonitor mon,
Slice... slice)
Get a slice of the dataset.
|
CompoundDataset |
getSlice(IMonitor mon,
SliceND slice)
Get a slice of the dataset.
|
CompoundDataset |
getSlice(int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
CompoundDataset |
getSlice(Slice... slice)
Get a slice of the dataset.
|
CompoundDataset |
getSlice(SliceND slice)
Get a slice of the dataset.
|
CompoundDataset |
getSliceView(int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
CompoundDataset |
getSliceView(Slice... slice)
Get a slice of the dataset.
|
CompoundDataset |
getSliceView(SliceND slice)
Get a slice of the dataset.
|
CompoundDataset |
getTransposedView(int... axes)
Permute copy of dataset's axes so that given order is old order:
|
CompoundDataset |
getView(boolean deepCopyMetadata) |
CompoundDataset |
iadd(Object o)
In-place addition with object o
|
CompoundDataset |
idivide(Object o)
In-place division with object o
|
CompoundDataset |
ifloor()
In-place floor
|
CompoundDataset |
ifloorDivide(Object o)
In-place floor division with object o
|
CompoundDataset |
imultiply(Object o)
In-place multiplication with object o
|
CompoundDataset |
ipower(Object o)
In-place raise to power of object o
|
CompoundDataset |
iremainder(Object o)
In-place remainder
|
CompoundDataset |
isubtract(Object o)
In-place subtraction with object o
|
CompoundDataset |
max(int axis,
boolean... ignoreInvalids) |
double[] |
maxItem()
Calculate maximum values of elements over all items in dataset
|
CompoundDataset |
mean(int axis,
boolean... ignoreInvalids) |
CompoundDataset |
min(int axis,
boolean... ignoreInvalids) |
double[] |
minItem()
Calculate minimum values of elements over all items in dataset
|
CompoundDataset |
peakToPeak(int axis,
boolean... ignoreInvalids) |
CompoundDataset |
product(int axis,
boolean... ignoreInvalids) |
CompoundDataset |
reshape(int... shape)
Returns new dataset with new shape but old data if possible, otherwise a copy is made
|
CompoundDataset |
rootMeanSquare(int axis,
boolean... ignoreInvalids) |
CompoundDataset |
setBy1DIndex(Object obj,
Dataset index)
This is modelled after the NumPy set item with an index dataset
|
CompoundDataset |
setByBoolean(Object obj,
Dataset selection)
This is modelled after the NumPy set item with a condition specified by a boolean dataset
|
CompoundDataset |
setByIndexes(Object obj,
Object... indexes)
This is modelled after the NumPy set item with an array of indexing objects
|
void |
setElements(Dataset source,
int element)
Set values of chosen elements from each item according to source dataset
|
CompoundDataset |
setSlice(Object obj,
IndexIterator iterator) |
CompoundDataset |
setSlice(Object obj,
int[] start,
int[] stop,
int[] step)
This is modelled after the NumPy array slice
|
CompoundDataset |
setSlice(Object object,
Slice... slice)
This is modelled after the NumPy array slice
|
CompoundDataset |
sort(Integer axis)
In-place sort of dataset
|
CompoundDataset |
squeeze()
Remove dimensions of 1 in shape of the dataset
|
CompoundDataset |
squeeze(boolean onlyFromEnd)
Remove dimensions of 1 in shape of the dataset from ends only if true
|
CompoundDataset |
squeezeEnds()
Remove dimensions of 1 from ends of shape of the dataset
|
CompoundDataset |
stdDeviation(int axis)
Standard deviation is square root of the variance
|
CompoundDataset |
stdDeviation(int axis,
boolean isWholePopulation,
boolean... ignoreInvalids)
Standard deviation is square root of the variance
|
CompoundDataset |
sum(int axis,
boolean... ignoreInvalids) |
CompoundDataset |
swapAxes(int axis1,
int axis2)
Swap two axes in dataset
|
CompoundDataset |
synchronizedCopy()
This is a synchronized version of the clone method
|
CompoundDataset |
transpose(int... axes)
|
CompoundDataset |
variance(int axis) |
CompoundDataset |
variance(int axis,
boolean isWholePopulation,
boolean... ignoreInvalids) |
all, all, any, any, argMax, argMax, argMin, argMin, cast, cast, checkAxis, checkCompatibility, containsInfs, containsInvalidNumbers, containsNans, copy, copy, copyItemsFromAxes, count, count, count, fillDataset, get1DIndex, getBoolean, getBoolean, getBoolean, getBooleanIterator, getBooleanIterator, getBuffer, getByte, getByte, getByte, getDouble, getDouble, getDouble, getDType, getElementBooleanAbs, getElementDoubleAbs, getElementLongAbs, getError, getError, getError, getErrorArray, getErrorArray, getErrorBuffer, getFloat, getFloat, getFloat, getIndices, getInt, getInt, getInt, getIterator, getIterator, getLong, getLong, getLong, getNbytes, getNDPosition, getObject, getObject, getObject, getObjectAbs, getOffset, getPositionIterator, getRealPart, getRealView, getShapeRef, getShort, getShort, getShort, getSliceIterator, getSliceIterator, getSliceIteratorFromAxes, getStrides, getString, getString, getString, getStringAbs, getUniqueItems, hasFloatingPointElements, isCompatibleWith, isComplex, max, mean, min, overrideInternal, peakToPeak, peakToPeak, product, product, residual, residual, residual, rootMeanSquare, rootMeanSquare, set, set, set, setDirty, setErrorBuffer, setItemsOnAxes, setObjectAbs, setSlice, stdDeviation, stdDeviation, stdDeviation, stdDeviation, sum, sum, toString, variance, variance, variance, variancegetBoolean, getByte, getDouble, getError, getErrorArray, getFloat, getInt, getItemBytes, getLong, getMetadata, getObject, getShort, getString, max, maxPos, mean, min, minPos, resize, set, setStringFormataddMetadata, clearMetadata, getElementClass, getElementsPerItem, getRank, getShape, getSize, hasErrors, setErrors, setMetadata, setShapegetFirstMetadata, getMetadataCompoundDataset cast(boolean repeat, int dtype, int isize)
DatasetCompoundDataset cast(int dtype)
DatasetCompoundDataset clone()
IDatasetCompoundDataset fill(Object obj)
DatasetCompoundDataset flatten()
DatasetCompoundDataset getBy1DIndex(IntegerDataset index)
DatasetgetBy1DIndex in interface Datasetindex - an integer datasetCompoundDataset getByBoolean(Dataset selection)
DatasetgetByBoolean in interface Datasetselection - a boolean dataset of same shape to use for selecting itemsCompoundDataset getByIndexes(Object... indexes)
DatasetgetByIndexes in interface Datasetindexes - an array of integer dataset, boolean dataset, slices or null entries (same as
full slices)CompoundDataset getSlice(IMonitor mon, int[] start, int[] stop, int[] step)
ILazyDatasetgetSlice in interface DatasetgetSlice 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)CompoundDataset getSlice(IMonitor mon, Slice... slice)
ILazyDatasetgetSlice in interface DatasetgetSlice in interface ILazyDatasetslice - an array of slice objects (the array can be null or contain nulls)CompoundDataset getSlice(IMonitor mon, SliceND slice)
ILazyDatasetgetSlice in interface DatasetgetSlice in interface ILazyDatasetslice - an n-D sliceCompoundDataset getSlice(int[] start, int[] stop, int[] step)
ILazyDatasetgetSlice in interface DatasetgetSlice in interface IDatasetgetSlice 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)CompoundDataset getSlice(Slice... slice)
ILazyDatasetCompoundDataset getSlice(SliceND slice)
ILazyDatasetCompoundDataset getSliceView(int[] start, int[] stop, int[] step)
IDatasetgetSliceView in interface DatasetgetSliceView in interface IDatasetgetSliceView 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)CompoundDataset getSliceView(Slice... slice)
IDatasetgetSliceView in interface DatasetgetSliceView in interface IDatasetgetSliceView in interface ILazyDatasetslice - an array of slice objects (the array can be null or contain nulls)CompoundDataset getSliceView(SliceND slice)
IDatasetgetSliceView in interface DatasetgetSliceView in interface IDatasetgetSliceView in interface ILazyDatasetslice - an nD slice objectCompoundDataset getTransposedView(int... axes)
IDatasetaxisPerm = (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 DatasetgetTransposedView in interface IDatasetgetTransposedView in interface ILazyDatasetaxes - if zero length then axes order reversedCompoundDataset getView(boolean deepCopyMetadata)
CompoundDataset getBroadcastView(int... shape)
getBroadcastView in interface DatasetCompoundDataset iadd(Object o)
DatasetCompoundDataset idivide(Object o)
DatasetCompoundDataset ifloor()
DatasetCompoundDataset ifloorDivide(Object o)
DatasetifloorDivide in interface DatasetCompoundDataset imultiply(Object o)
DatasetCompoundDataset ipower(Object o)
DatasetCompoundDataset iremainder(Object o)
Datasetiremainder in interface DatasetCompoundDataset isubtract(Object o)
DatasetCompoundDataset reshape(int... shape)
DatasetCompoundDataset setBy1DIndex(Object obj, Dataset index)
DatasetsetBy1DIndex in interface Datasetobj - specifies the object used to set the selected itemsindex - an integer datasetCompoundDataset setByBoolean(Object obj, Dataset selection)
DatasetsetByBoolean in interface Datasetobj - specifies the object used to set the selected itemsselection - a boolean dataset of same shape to use for selecting itemsCompoundDataset setByIndexes(Object obj, Object... indexes)
DatasetsetByIndexes in interface Datasetobj - specifies the object used to set the selected itemsindexes - an array of integer dataset, boolean dataset, slices or null entries (same as
full slices)CompoundDataset setSlice(Object obj, IndexIterator iterator)
CompoundDataset setSlice(Object obj, int[] start, int[] stop, int[] step)
DatasetsetSlice in interface Datasetobj - specifies the object used to set the specified slicestart - specifies the starting indexesstop - specifies the stopping indexes (nb, these are not included in the slice)step - specifies the steps in the sliceCompoundDataset setSlice(Object object, Slice... slice)
DatasetCompoundDataset sort(Integer axis)
DatasetCompoundDataset squeezeEnds()
ILazyDatasetsqueezeEnds in interface DatasetsqueezeEnds in interface IDatasetsqueezeEnds in interface ILazyDatasetCompoundDataset squeeze()
IDatasetCompoundDataset squeeze(boolean onlyFromEnd)
IDatasetCompoundDataset swapAxes(int axis1, int axis2)
DatasetCompoundDataset synchronizedCopy()
DatasetsynchronizedCopy in interface DatasetCompoundDataset transpose(int... axes)
DatasetCompoundDataset max(int axis, boolean... ignoreInvalids)
max in interface DatasetignoreInvalids - - Can be null, empty, or one or more booleans. By default, all booleans
are false. If the first boolean is true, will ignore NaNs and ignore infinities. Use the second
boolean to ignore infinities separately.CompoundDataset min(int axis, boolean... ignoreInvalids)
min in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset peakToPeak(int axis, boolean... ignoreInvalids)
peakToPeak in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset sum(int axis, boolean... ignoreInvalids)
sum in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset product(int axis, boolean... ignoreInvalids)
product in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset mean(int axis, boolean... ignoreInvalids)
mean in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset rootMeanSquare(int axis, boolean... ignoreInvalids)
rootMeanSquare in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset stdDeviation(int axis)
DatasetstdDeviation in interface Datasetwith isWholePopulation = falseCompoundDataset stdDeviation(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
DatasetstdDeviation in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset variance(int axis)
variance in interface Datasetwith isWholePopulation = falseCompoundDataset variance(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
variance in interface DatasetignoreInvalids - - see Dataset.max(int, boolean...)void getDoubleArray(double[] darray)
darray - double array must be allocated and have sufficient lengthvoid getDoubleArray(double[] darray, int i)
darray - double array must be allocated and have sufficient lengthi - void getDoubleArray(double[] darray, int i, int j)
darray - double array must be allocated and have sufficient lengthi - j - void getDoubleArray(double[] darray, int... pos)
darray - double array must be allocated and have sufficient lengthpos - void getDoubleArrayAbs(int index, double[] darray)
index - darray - double array must be allocated and have sufficient lengthDataset getElements(int element)
element - Dataset getElementsView(int element)
element - void setElements(Dataset source, int element)
source - element - void copyElements(Dataset destination, int element)
destination - element - Dataset asNonCompoundDataset(boolean shareData)
shareData - if true, then share data when possible otherwise copy itdouble[] maxItem()
double[] minItem()
CompoundDataset getErrors()
Datasetbyte[] getByteArray()
byte[] getByteArray(int i)
i - byte[] getByteArray(int i, int j)
i - j - byte[] getByteArray(int... pos)
pos - short[] getShortArray()
short[] getShortArray(int i)
i - short[] getShortArray(int i, int j)
i - j - short[] getShortArray(int... pos)
pos - int[] getIntArray()
int[] getIntArray(int i)
i - int[] getIntArray(int i, int j)
i - j - int[] getIntArray(int... pos)
pos - long[] getLongArray()
long[] getLongArray(int i)
i - long[] getLongArray(int i, int j)
i - j - long[] getLongArray(int... pos)
pos - float[] getFloatArray()
float[] getFloatArray(int i)
i - float[] getFloatArray(int i, int j)
i - j - float[] getFloatArray(int... pos)
pos - double[] getDoubleArray()
double[] getDoubleArray(int i)
i - double[] getDoubleArray(int i, int j)
i - j - double[] getDoubleArray(int... pos)
pos - Copyright © 2014–2019 Eclipse Foundation. All rights reserved.