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, RGB8, 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
|
CompoundDataset |
idivide(Object o)
In-place division
|
CompoundDataset |
ifloor()
In-place floor
|
CompoundDataset |
ifloorDivide(Object o)
In-place floor division
|
CompoundDataset |
imultiply(Object o)
In-place multiplication
|
CompoundDataset |
ipower(Object o)
In-place raise to power of argument
|
CompoundDataset |
iremainder(Object o)
In-place remainder of division
|
CompoundDataset |
isubtract(Object o)
In-place subtraction
|
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 ILazyDatasetmon - can be nullstart - 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 ILazyDatasetmon - can be nullslice - 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 ILazyDatasetmon - can be nullslice - 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 Datasetshape - to use for broadcastCompoundDataset iadd(Object o)
DatasetCompoundDataset idivide(Object o)
DatasetCompoundDataset ifloor()
DatasetCompoundDataset ifloorDivide(Object o)
DatasetifloorDivide in interface Dataseto - object to useCompoundDataset imultiply(Object o)
DatasetCompoundDataset ipower(Object o)
DatasetCompoundDataset iremainder(Object o)
Datasetiremainder in interface Dataseto - object to useCompoundDataset 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)
DatasetCompoundDataset 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 Datasetaxis - to reduce overignoreInvalids - - 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 Datasetaxis - to reduce alongignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset peakToPeak(int axis, boolean... ignoreInvalids)
peakToPeak in interface Datasetaxis - to reduce alongignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset sum(int axis, boolean... ignoreInvalids)
sum in interface Datasetaxis - to reduce alongignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset product(int axis, boolean... ignoreInvalids)
product in interface Datasetaxis - to reduce alongignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset mean(int axis, boolean... ignoreInvalids)
mean in interface Datasetaxis - to reduce alongignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset rootMeanSquare(int axis, boolean... ignoreInvalids)
rootMeanSquare in interface Datasetaxis - to reduce alongignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset stdDeviation(int axis)
DatasetstdDeviation in interface Datasetaxis - to reduce alongwith isWholePopulation = falseCompoundDataset stdDeviation(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
DatasetstdDeviation in interface Datasetaxis - to reduce alongisWholePopulation - if false, consider as sample of populationignoreInvalids - - see Dataset.max(int, boolean...)CompoundDataset variance(int axis)
variance in interface Datasetaxis - to reduce alongwith isWholePopulation = falseCompoundDataset variance(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
variance in interface Datasetaxis - to reduce alongisWholePopulation - if false, consider as sample of populationignoreInvalids - - 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 - position in first dimensionvoid getDoubleArray(double[] darray, int i, int j)
darray - double array must be allocated and have sufficient lengthi - position in first dimensionj - position in second dimensionvoid getDoubleArray(double[] darray, int... pos)
darray - double array must be allocated and have sufficient lengthpos - positionvoid getDoubleArrayAbs(int index, double[] darray)
index - in arraydarray - double array must be allocated and have sufficient lengthDataset getElements(int element)
element - to chooseDataset getElementsView(int element)
element - to choosevoid setElements(Dataset source, int element)
source - datasetelement - to choosevoid copyElements(Dataset destination, int element)
destination - datasetelement - to chooseDataset 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 - position in first dimensionbyte[] getByteArray(int i, int j)
i - position in first dimensionj - position in second dimensionbyte[] getByteArray(int... pos)
pos - positionshort[] getShortArray()
short[] getShortArray(int i)
i - position in first dimensionshort[] getShortArray(int i, int j)
i - position in first dimensionj - position in second dimensionshort[] getShortArray(int... pos)
pos - positionint[] getIntArray()
int[] getIntArray(int i)
i - position in first dimensionint[] getIntArray(int i, int j)
i - position in first dimensionj - position in second dimensionint[] getIntArray(int... pos)
pos - positionlong[] getLongArray()
long[] getLongArray(int i)
i - position in first dimensionlong[] getLongArray(int i, int j)
i - position in first dimensionj - position in second dimensionlong[] getLongArray(int... pos)
pos - positionfloat[] getFloatArray()
float[] getFloatArray(int i)
i - position in first dimensionfloat[] getFloatArray(int i, int j)
i - position in first dimensionj - position in second dimensionfloat[] getFloatArray(int... pos)
pos - positiondouble[] getDoubleArray()
double[] getDoubleArray(int i)
i - position in first dimensiondouble[] getDoubleArray(int i, int j)
i - position in first dimensionj - position in second dimensiondouble[] getDoubleArray(int... pos)
pos - positionCopyright © 2014–2022 Eclipse Foundation. All rights reserved.