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, 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, variance
getBoolean, getByte, getDouble, getError, getErrorArray, getFloat, getInt, getItemBytes, getLong, getMetadata, getObject, getShort, getString, max, maxPos, mean, min, minPos, resize, set, setStringFormat
addMetadata, clearMetadata, getElementClass, getElementsPerItem, getRank, getShape, getSize, hasErrors, setErrors, setMetadata, setShape
getFirstMetadata, getMetadata
CompoundDataset cast(boolean repeat, int dtype, int isize)
Dataset
CompoundDataset cast(int dtype)
Dataset
CompoundDataset clone()
IDataset
CompoundDataset fill(Object obj)
Dataset
CompoundDataset flatten()
Dataset
CompoundDataset getBy1DIndex(IntegerDataset index)
Dataset
getBy1DIndex
in interface Dataset
index
- an integer datasetCompoundDataset getByBoolean(Dataset selection)
Dataset
getByBoolean
in interface Dataset
selection
- a boolean dataset of same shape to use for selecting itemsCompoundDataset getByIndexes(Object... indexes)
Dataset
getByIndexes
in interface Dataset
indexes
- 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)
ILazyDataset
getSlice
in interface Dataset
getSlice
in interface ILazyDataset
start
- 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)
ILazyDataset
getSlice
in interface Dataset
getSlice
in interface ILazyDataset
slice
- an array of slice objects (the array can be null or contain nulls)CompoundDataset getSlice(IMonitor mon, SliceND slice)
ILazyDataset
getSlice
in interface Dataset
getSlice
in interface ILazyDataset
slice
- an n-D sliceCompoundDataset getSlice(int[] start, int[] stop, int[] step)
ILazyDataset
getSlice
in interface Dataset
getSlice
in interface IDataset
getSlice
in interface ILazyDataset
start
- 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)
ILazyDataset
CompoundDataset getSlice(SliceND slice)
ILazyDataset
CompoundDataset getSliceView(int[] start, int[] stop, int[] step)
IDataset
getSliceView
in interface Dataset
getSliceView
in interface IDataset
getSliceView
in interface ILazyDataset
start
- 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)
IDataset
getSliceView
in interface Dataset
getSliceView
in interface IDataset
getSliceView
in interface ILazyDataset
slice
- an array of slice objects (the array can be null or contain nulls)CompoundDataset getSliceView(SliceND slice)
IDataset
getSliceView
in interface Dataset
getSliceView
in interface IDataset
getSliceView
in interface ILazyDataset
slice
- an nD slice objectCompoundDataset getTransposedView(int... axes)
IDataset
axisPerm = (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 Dataset
getTransposedView
in interface IDataset
getTransposedView
in interface ILazyDataset
axes
- if zero length then axes order reversedCompoundDataset getView(boolean deepCopyMetadata)
CompoundDataset getBroadcastView(int... shape)
getBroadcastView
in interface Dataset
CompoundDataset iadd(Object o)
Dataset
CompoundDataset idivide(Object o)
Dataset
CompoundDataset ifloor()
Dataset
CompoundDataset ifloorDivide(Object o)
Dataset
ifloorDivide
in interface Dataset
CompoundDataset imultiply(Object o)
Dataset
CompoundDataset ipower(Object o)
Dataset
CompoundDataset iremainder(Object o)
Dataset
iremainder
in interface Dataset
CompoundDataset isubtract(Object o)
Dataset
CompoundDataset reshape(int... shape)
Dataset
CompoundDataset setBy1DIndex(Object obj, Dataset index)
Dataset
setBy1DIndex
in interface Dataset
obj
- specifies the object used to set the selected itemsindex
- an integer datasetCompoundDataset setByBoolean(Object obj, Dataset selection)
Dataset
setByBoolean
in interface Dataset
obj
- 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)
Dataset
setByIndexes
in interface Dataset
obj
- 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)
Dataset
setSlice
in interface Dataset
obj
- 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)
Dataset
CompoundDataset sort(Integer axis)
Dataset
CompoundDataset squeezeEnds()
ILazyDataset
squeezeEnds
in interface Dataset
squeezeEnds
in interface IDataset
squeezeEnds
in interface ILazyDataset
CompoundDataset squeeze()
IDataset
CompoundDataset squeeze(boolean onlyFromEnd)
IDataset
CompoundDataset swapAxes(int axis1, int axis2)
Dataset
CompoundDataset synchronizedCopy()
Dataset
synchronizedCopy
in interface Dataset
CompoundDataset transpose(int... axes)
Dataset
CompoundDataset max(int axis, boolean... ignoreInvalids)
max
in interface Dataset
ignoreInvalids
- - 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 Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset peakToPeak(int axis, boolean... ignoreInvalids)
peakToPeak
in interface Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset sum(int axis, boolean... ignoreInvalids)
sum
in interface Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset product(int axis, boolean... ignoreInvalids)
product
in interface Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset mean(int axis, boolean... ignoreInvalids)
mean
in interface Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset rootMeanSquare(int axis, boolean... ignoreInvalids)
rootMeanSquare
in interface Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset stdDeviation(int axis)
Dataset
stdDeviation
in interface Dataset
with isWholePopulation = false
CompoundDataset stdDeviation(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
Dataset
stdDeviation
in interface Dataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
CompoundDataset variance(int axis)
variance
in interface Dataset
with isWholePopulation = false
CompoundDataset variance(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
variance
in interface Dataset
ignoreInvalids
- - 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()
Dataset
byte[] 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–2018 Eclipse Foundation. All rights reserved.