public class ObjectDataset extends ObjectDatasetBase
data
base, BLOCK_CLOSE, BLOCK_OPEN, odata, offset, size, stride, stringFormat
metadata, name, shape
ARRAYFLOAT32, ARRAYFLOAT64, ARRAYINT16, ARRAYINT32, ARRAYINT64, ARRAYINT8, ARRAYMUL, BOOL, COMPLEX, COMPLEX128, COMPLEX64, DATE, FLOAT, FLOAT32, FLOAT64, INT, INT16, INT32, INT64, INT8, OBJECT, RGB, RGB8, STRING
Modifier and Type | Method and Description |
---|---|
ObjectDataset |
clone()
Clone dataset
|
boolean |
containsInfs() |
boolean |
containsNans() |
boolean |
getBoolean()
Get first item as a boolean.
|
boolean |
getBoolean(int... pos) |
boolean |
getBoolean(int i)
Get an item from given position as a boolean.
|
boolean |
getBoolean(int i,
int j)
Get an item from given position as a boolean.
|
byte |
getByte()
Get first item as a byte.
|
byte |
getByte(int... pos) |
byte |
getByte(int i)
Get an item from given position as a byte.
|
byte |
getByte(int i,
int j)
Get an item from given positionj as a byte.
|
double |
getDouble()
Get first item as a double.
|
double |
getDouble(int... pos) |
double |
getDouble(int i)
Get an item from given position as a double.
|
double |
getDouble(int i,
int j)
Get an item from given position as a double.
|
boolean |
getElementBooleanAbs(int index)
Get an element from given absolute index as a boolean.
|
double |
getElementDoubleAbs(int index)
Get an element from given absolute index as a double.
|
long |
getElementLongAbs(int index)
Get an element from given absolute index as a long.
|
float |
getFloat()
Get first item as a float.
|
float |
getFloat(int... pos) |
float |
getFloat(int i)
Get an item from given position as a float.
|
float |
getFloat(int i,
int j)
Get an item from given position as a float.
|
int |
getInt()
Get first item as an int.
|
int |
getInt(int... pos) |
int |
getInt(int i)
Get an item from given position as an int.
|
int |
getInt(int i,
int j)
Get an item from given position as an int.
|
long |
getLong()
Get first item as a long.
|
long |
getLong(int... pos) |
long |
getLong(int i)
Get an item from given position as a long.
|
long |
getLong(int i,
int j)
Get an item from given position as a long.
|
short |
getShort()
Get first item as a short.
|
short |
getShort(int... pos) |
short |
getShort(int i)
Get an item from given position as a short.
|
short |
getShort(int i,
int j)
Get an item from given position as a short.
|
ObjectDataset |
getSlice(SliceIterator siter)
Get a slice of the dataset.
|
String |
getStringAbs(int index)
Get an item from given absolute index as a string.
|
ObjectDataset |
getView(boolean deepCopyMetadata) |
ObjectDataset |
iadd(Object o)
In-place addition
|
ObjectDataset |
idivide(Object o)
In-place division
|
ObjectDataset |
ifloor()
In-place floor
|
ObjectDataset |
imultiply(Object o)
In-place multiplication
|
ObjectDataset |
ipower(Object o)
In-place raise to power of argument
|
ObjectDataset |
iremainder(Object o)
In-place remainder of division
|
ObjectDataset |
isubtract(Object o)
In-place subtraction
|
int[] |
maxPos(boolean... ignoreInvalids) |
int[] |
minPos(boolean... ignoreInvalids) |
double |
residual(Object o)
Calculate residual of dataset with object
See
Dataset.residual(Object o, boolean ignoreNaNs) with ignoreNaNs = false |
containsInvalidNumbers, copyItemsFromAxes, createArray, equals, fill, fillDataset, get, get, get, get, getAbs, getBufferLength, getData, getObject, getObject, getObject, getObject, getObjectAbs, getString, getString, getString, getString, getUniqueItems, hashCode, residual, resize, set, set, set, set, setAbs, setBy1DIndex, setByBoolean, setByIndexes, setData, setItem, setItem, setItem, setItem, setItemDirect, setItemsOnAxes, setObjectAbs, setSlice, sort
all, all, any, any, argMax, argMax, argMin, argMin, calcSteps, cast, cast, cast, cast, checkAxis, checkAxis, checkCompatibility, copy, copy, copyToView, count, count, count, createStrides, createStrides, createStrides, createStrides, fillData, flatten, get1DIndex, get1DIndex, get1DIndex, get1DIndexFromShape, get1DIndexFromShape, getBooleanIterator, getBooleanIterator, getBroadcastView, getBuffer, getBy1DIndex, getByBoolean, getByIndexes, getDType, getElementClass, getElementsPerItem, getError, getError, getError, getError, getErrorArray, getErrorArray, getErrorArray, getErrorBuffer, getErrors, getFirst1DIndex, getIndices, getInternalSquaredError, getItemBytes, getIterator, getIterator, getMaxLineLength, getNbytes, getNDPosition, getOffset, getPositionIterator, getRank, getRealPart, getRealView, getShape, getShapeRef, getSize, getSlice, getSlice, getSlice, getSlice, getSlice, getSlice, getSliceIterator, getSliceIterator, getSliceIteratorFromAxes, getSliceView, getSliceView, getSliceView, getStats, getStrides, getStringStats, getTransposedView, hasFloatingPointElements, ifloorDivide, internalGetSliceIterator, isCompatibleWith, isComplex, max, max, max, mean, mean, mean, min, min, min, overrideInternal, peakToPeak, peakToPeak, peakToPeak, product, product, product, reshape, residual, rootMeanSquare, rootMeanSquare, rootMeanSquare, setErrorBuffer, setMaxLineLength, setShape, setSlice, setSlice, setSlice, setStringFormat, squeeze, squeeze, squeezeEnds, stdDeviation, stdDeviation, stdDeviation, stdDeviation, stdDeviation, stdDeviation, sum, sum, sum, swapAxes, synchronizedCopy, toString, toString, transpose, variance, variance, variance, variance, variance, variance
addMetadata, checkPermutatedAxes, checkSliceND, clearMetadata, copyMetadata, copyMetadata, createFromSerializable, dirtyMetadata, findMetadataTypeSubInterfaces, getErrorMetadata, getFirstMetadata, getMetadata, getMetadata, getMetadataMap, getName, hasErrors, reshapeMetadata, restoreMetadata, setDirty, setErrors, setMetadata, setName, sliceMetadata, transposeMetadata
finalize, getClass, notify, notifyAll, wait, wait, wait
getMetadata
addMetadata, clearMetadata, hasErrors, setErrors, setMetadata
getFirstMetadata, getMetadata
public ObjectDataset getView(boolean deepCopyMetadata)
getView
in interface Dataset
getView
in class ObjectDatasetBase
deepCopyMetadata
- if true then deep-copy metadatapublic ObjectDataset clone()
ILazyDataset
clone
in interface Dataset
clone
in interface IDataset
clone
in interface ILazyDataset
clone
in class ObjectDatasetBase
public ObjectDataset getSlice(SliceIterator siter)
AbstractDataset
getSlice
in class ObjectDatasetBase
siter
- Slice iteratorpublic boolean getElementBooleanAbs(int index)
Dataset
getElementBooleanAbs
in interface Dataset
getElementBooleanAbs
in class ObjectDatasetBase
index
- in arraypublic double getElementDoubleAbs(int index)
Dataset
getElementDoubleAbs
in interface Dataset
getElementDoubleAbs
in class ObjectDatasetBase
index
- in arraypublic long getElementLongAbs(int index)
Dataset
getElementLongAbs
in interface Dataset
getElementLongAbs
in class ObjectDatasetBase
index
- in arraypublic double getDouble()
Dataset
getDouble
in interface Dataset
getDouble
in class ObjectDatasetBase
public double getDouble(int i)
Dataset
getDouble
in interface Dataset
getDouble
in class ObjectDatasetBase
i
- position in first dimensionpublic double getDouble(int i, int j)
Dataset
getDouble
in interface Dataset
getDouble
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic double getDouble(int... pos)
getDouble
in interface IDataset
getDouble
in class ObjectDatasetBase
pos
- positionpublic float getFloat()
Dataset
getFloat
in interface Dataset
getFloat
in class ObjectDatasetBase
public float getFloat(int i)
Dataset
getFloat
in interface Dataset
getFloat
in class ObjectDatasetBase
i
- position in first dimensionpublic float getFloat(int i, int j)
Dataset
getFloat
in interface Dataset
getFloat
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic float getFloat(int... pos)
getFloat
in interface IDataset
getFloat
in class ObjectDatasetBase
pos
- positionpublic long getLong()
Dataset
getLong
in interface Dataset
getLong
in class ObjectDatasetBase
public long getLong(int i)
Dataset
getLong
in interface Dataset
getLong
in class ObjectDatasetBase
i
- position in first dimensionpublic long getLong(int i, int j)
Dataset
getLong
in interface Dataset
getLong
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic long getLong(int... pos)
getLong
in interface IDataset
getLong
in class ObjectDatasetBase
pos
- positionpublic int getInt()
Dataset
getInt
in interface Dataset
getInt
in class ObjectDatasetBase
public int getInt(int i)
Dataset
getInt
in interface Dataset
getInt
in class ObjectDatasetBase
i
- position in first dimensionpublic int getInt(int i, int j)
Dataset
getInt
in interface Dataset
getInt
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic int getInt(int... pos)
getInt
in interface IDataset
getInt
in class ObjectDatasetBase
pos
- positionpublic short getShort()
Dataset
getShort
in interface Dataset
getShort
in class ObjectDatasetBase
public short getShort(int i)
Dataset
getShort
in interface Dataset
getShort
in class ObjectDatasetBase
i
- position in first dimensionpublic short getShort(int i, int j)
Dataset
getShort
in interface Dataset
getShort
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic short getShort(int... pos)
getShort
in interface IDataset
getShort
in class ObjectDatasetBase
pos
- positionpublic byte getByte()
Dataset
getByte
in interface Dataset
getByte
in class ObjectDatasetBase
public byte getByte(int i)
Dataset
getByte
in interface Dataset
getByte
in class ObjectDatasetBase
i
- position in first dimensionpublic byte getByte(int i, int j)
Dataset
getByte
in interface Dataset
getByte
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic byte getByte(int... pos)
getByte
in interface IDataset
getByte
in class ObjectDatasetBase
pos
- positionpublic boolean getBoolean()
Dataset
getBoolean
in interface Dataset
getBoolean
in class ObjectDatasetBase
public boolean getBoolean(int i)
Dataset
getBoolean
in interface Dataset
getBoolean
in class ObjectDatasetBase
i
- position in first dimensionpublic boolean getBoolean(int i, int j)
Dataset
getBoolean
in interface Dataset
getBoolean
in class ObjectDatasetBase
i
- position in first dimensionj
- position in second dimensionpublic boolean getBoolean(int... pos)
getBoolean
in interface IDataset
getBoolean
in class ObjectDatasetBase
pos
- positionpublic String getStringAbs(int index)
Dataset
getStringAbs
in interface Dataset
getStringAbs
in class ObjectDatasetBase
index
- in arraypublic int[] minPos(boolean... ignoreInvalids)
minPos
in interface IDataset
minPos
in class ObjectDatasetBase
ignoreInvalids
- - see IDataset.max(boolean...)
public int[] maxPos(boolean... ignoreInvalids)
maxPos
in interface IDataset
maxPos
in class ObjectDatasetBase
ignoreInvalids
- - see IDataset.max(boolean...)
public boolean containsInfs()
containsInfs
in interface Dataset
containsInfs
in class ObjectDatasetBase
public boolean containsNans()
containsNans
in interface Dataset
containsNans
in class ObjectDatasetBase
public ObjectDataset iadd(Object o)
Dataset
iadd
in interface Dataset
iadd
in class ObjectDatasetBase
o
- object to usepublic ObjectDataset isubtract(Object o)
Dataset
isubtract
in interface Dataset
isubtract
in class ObjectDatasetBase
o
- object to usepublic ObjectDataset imultiply(Object o)
Dataset
imultiply
in interface Dataset
imultiply
in class ObjectDatasetBase
o
- object to usepublic ObjectDataset idivide(Object o)
Dataset
idivide
in interface Dataset
idivide
in class ObjectDatasetBase
o
- object to usepublic ObjectDataset iremainder(Object o)
Dataset
iremainder
in interface Dataset
iremainder
in class ObjectDatasetBase
o
- object to usepublic ObjectDataset ifloor()
Dataset
ifloor
in interface Dataset
ifloor
in class ObjectDatasetBase
public ObjectDataset ipower(Object o)
Dataset
ipower
in interface Dataset
ipower
in class ObjectDatasetBase
o
- object to usepublic double residual(Object o)
Dataset
Dataset.residual(Object o, boolean ignoreNaNs)
with ignoreNaNs = falseresidual
in interface Dataset
residual
in class AbstractDataset
o
- object to useCopyright © 2014–2022 Eclipse Foundation. All rights reserved.