public class ComplexDoubleDataset extends CompoundDoubleDataset
data
isize
base, BLOCK_CLOSE, BLOCK_OPEN, ELLIPSIS, 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 |
---|---|
ComplexDoubleDataset |
clone()
Clone dataset
|
ComplexDoubleDataset |
fill(Object obj)
Fill dataset with given object
|
org.apache.commons.math3.complex.Complex |
get() |
org.apache.commons.math3.complex.Complex |
get(int... pos) |
org.apache.commons.math3.complex.Complex |
get(int i) |
org.apache.commons.math3.complex.Complex |
get(int i,
int j) |
org.apache.commons.math3.complex.Complex |
getComplex() |
org.apache.commons.math3.complex.Complex |
getComplex(int... pos) |
org.apache.commons.math3.complex.Complex |
getComplex(int i) |
org.apache.commons.math3.complex.Complex |
getComplex(int i,
int j) |
org.apache.commons.math3.complex.Complex |
getComplexAbs(int index)
Get complex value at absolute index in the internal array.
|
double |
getImag() |
double |
getImag(int... pos) |
double |
getImag(int i) |
double |
getImag(int i,
int j) |
DoubleDataset |
getImaginaryPart() |
DoubleDataset |
getImaginaryView() |
Object |
getObject()
Get first item as an object.
|
Object |
getObject(int... pos) |
Object |
getObject(int i)
Get an item from given position as an object.
|
Object |
getObject(int i,
int j)
Get an item from given position as an object.
|
Object |
getObjectAbs(int index)
Get an item from given absolute index as an object.
|
double |
getReal() |
double |
getReal(int... pos) |
double |
getReal(int i) |
double |
getReal(int i,
int j) |
DoubleDataset |
getRealPart() |
DoubleDataset |
getRealView() |
ComplexDoubleDataset |
getSlice(SliceIterator siter)
Get a slice of the dataset.
|
String |
getStringAbs(int index)
Get an item from given absolute index as a string.
|
ComplexDoubleDataset |
getView(boolean deepCopyMetadata) |
ComplexDoubleDataset |
iadd(Object b)
In-place addition
|
ComplexDoubleDataset |
idivide(Object b)
In-place division
|
ComplexDoubleDataset |
imultiply(Object b)
In-place multiplication
|
ComplexDoubleDataset |
ipower(Object b)
In-place raise to power of argument
|
ComplexDoubleDataset |
iremainder(Object b)
In-place remainder of division
|
boolean |
isComplex() |
ComplexDoubleDataset |
isubtract(Object b)
In-place subtraction
|
Number |
max(boolean... switches) |
int[] |
maxPos(boolean... switches) |
Object |
mean(boolean... switches) |
Number |
min(boolean... switches) |
int[] |
minPos(boolean... switches) |
double |
residual(Object b,
Dataset w,
boolean ignoreNaNs)
Calculate residual of dataset with object and weight.
|
void |
set(double dr,
double di,
int... pos)
Set real and imaginary values at given position
|
void |
set(double dr,
double di,
int i)
Set real and imaginary values at given position
|
void |
set(double dr,
double di,
int i,
int j)
Set real and imaginary values at given position
|
void |
set(Object obj,
int... pos)
Set the value given by object at given position
|
void |
set(Object obj,
int i)
Set the value given by object at given position.
|
void |
set(Object obj,
int i,
int j)
Set the value given by object at given position.
|
void |
setAbs(int index,
org.apache.commons.math3.complex.Complex val)
Set values at absolute index in the internal array.
|
void |
setAbs(int index,
double real,
double imag)
Set item at index to complex value given by real and imaginary parts
|
void |
setObjectAbs(int index,
Object obj)
Set an item at absolute index from an object.
|
ComplexDoubleDataset |
setSlice(Object o,
IndexIterator siter) |
Object |
sum(boolean... switches) |
asNonCompoundDataset, containsInfs, containsInvalidNumbers, containsNans, copyElements, copyItemsFromAxes, createArray, createCompoundDatasetWithLastDimension, createFromObject, equals, fillDataset, getAbs, getAbs, getBufferLength, getByteArray, getByteArray, getByteArray, getByteArray, getData, getDoubleArray, getDoubleArray, getDoubleArray, getDoubleArray, getDoubleArrayAbs, getElementBooleanAbs, getElementDoubleAbs, getElementLongAbs, getElements, getElementsView, getFirstValue, getFirstValue, getFirstValue, getFirstValue, getFloatArray, getFloatArray, getFloatArray, getFloatArray, getIntArray, getIntArray, getIntArray, getIntArray, getLongArray, getLongArray, getLongArray, getLongArray, getShortArray, getShortArray, getShortArray, getShortArray, getString, getString, getString, getString, hashCode, ifloor, resize, set, setAbs, setAbs, setBy1DIndex, setByBoolean, setByIndexes, setData, setElements, setItem, setItem, setItem, setItem, setItemDirect, setItemsOnAxes
argMax, argMin, cast, cast, flatten, get1DIndex, get1DIndex, get1DIndexFromShape, getBoolean, getBoolean, getBoolean, getBoolean, getBroadcastView, getBy1DIndex, getByBoolean, getByIndexes, getByte, getByte, getByte, getByte, getCompoundStats, getDouble, getDouble, getDouble, getDouble, getDoubleArray, getDoubleArray, getDoubleArray, getDoubleArray, getElementsPerItem, getError, getError, getError, getErrorArray, getErrorArray, getErrorArray, getErrors, getFloat, getFloat, getFloat, getFloat, getInt, getInt, getInt, getInt, getIterator, getIterator, getLong, getLong, getLong, getLong, getShort, getShort, getShort, getShort, getSlice, getSlice, getSlice, getSlice, getSlice, getSlice, getSliceView, getSliceView, getSliceView, getTransposedView, getUniqueItems, ifloorDivide, internalGetSliceIterator, max, maxItem, mean, min, minItem, peakToPeak, product, reshape, rootMeanSquare, rootMeanSquare, setSlice, setSlice, sort, squeeze, squeeze, squeezeEnds, stdDeviation, stdDeviation, sum, swapAxes, synchronizedCopy, transpose, variance, variance, variance
all, all, any, any, argMax, argMin, calcSteps, cast, cast, checkAxis, checkAxis, checkCompatibility, copy, copy, copyToView, count, count, count, createStrides, createStrides, createStrides, createStrides, fillData, get1DIndex, get1DIndexFromShape, getBooleanIterator, getBooleanIterator, getBuffer, getDType, getElementClass, getError, getErrorBuffer, getFirst1DIndex, getIndices, getInternalSquaredError, getItemBytes, getIterator, getMaxLineLength, getNbytes, getNDPosition, getOffset, getPositionIterator, getRank, getShape, getShapeRef, getSize, getSliceIterator, getSliceIterator, getSliceIteratorFromAxes, getStats, getStrides, getStringStats, hasFloatingPointElements, isCompatibleWith, max, mean, min, overrideInternal, peakToPeak, peakToPeak, product, product, residual, residual, rootMeanSquare, setErrorBuffer, setMaxLineLength, setShape, setSlice, setStringFormat, stdDeviation, stdDeviation, stdDeviation, stdDeviation, sum, toString, toString, 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
all, all, any, any, argMax, argMin, cast, cast, checkAxis, checkCompatibility, copy, copy, count, count, count, get1DIndex, getBooleanIterator, getBooleanIterator, getBuffer, getDType, getError, getErrorBuffer, getIndices, getIterator, getNbytes, getNDPosition, getOffset, getPositionIterator, getShapeRef, getSliceIterator, getSliceIterator, getSliceIteratorFromAxes, getStrides, hasFloatingPointElements, isCompatibleWith, max, mean, min, overrideInternal, peakToPeak, peakToPeak, product, product, residual, residual, rootMeanSquare, setDirty, setErrorBuffer, setSlice, stdDeviation, stdDeviation, stdDeviation, stdDeviation, sum, toString, variance, variance, variance
getItemBytes, getMetadata, setStringFormat
addMetadata, clearMetadata, getElementClass, getRank, getShape, getSize, hasErrors, setErrors, setMetadata, setShape
getFirstMetadata, getMetadata
public ComplexDoubleDataset clone()
ILazyDataset
clone
in interface CompoundDataset
clone
in interface Dataset
clone
in interface IDataset
clone
in interface ILazyDataset
clone
in class CompoundDoubleDataset
public boolean isComplex()
isComplex
in interface Dataset
isComplex
in class AbstractDataset
public ComplexDoubleDataset fill(Object obj)
Dataset
fill
in interface CompoundDataset
fill
in interface Dataset
fill
in class CompoundDoubleDataset
obj
- fill valuepublic ComplexDoubleDataset getView(boolean deepCopyMetadata)
getView
in interface CompoundDataset
getView
in interface Dataset
getView
in class CompoundDoubleDataset
deepCopyMetadata
- if true then deep-copy metadatapublic org.apache.commons.math3.complex.Complex getComplexAbs(int index)
index
- absolute indexpublic Object getObjectAbs(int index)
Dataset
getObjectAbs
in interface Dataset
getObjectAbs
in class CompoundDoubleDataset
index
- in arraypublic String getStringAbs(int index)
Dataset
getStringAbs
in interface Dataset
getStringAbs
in class CompoundDoubleDataset
index
- in arraypublic void setAbs(int index, org.apache.commons.math3.complex.Complex val)
index
- absolute indexval
- new valuespublic void setObjectAbs(int index, Object obj)
Dataset
setObjectAbs
in interface Dataset
setObjectAbs
in class CompoundDoubleDataset
index
- in arrayobj
- value to setpublic void setAbs(int index, double real, double imag)
index
- absolute indexreal
- real partimag
- imaginary partpublic org.apache.commons.math3.complex.Complex get()
public org.apache.commons.math3.complex.Complex get(int i)
i
- position in first dimensionpublic org.apache.commons.math3.complex.Complex get(int i, int j)
i
- position in first dimensionj
- position in second dimensionpublic org.apache.commons.math3.complex.Complex get(int... pos)
pos
- positionpublic Object getObject()
Dataset
getObject
in interface Dataset
getObject
in class CompoundDoubleDataset
public Object getObject(int i)
Dataset
getObject
in interface Dataset
getObject
in class CompoundDoubleDataset
i
- position in first dimensionpublic Object getObject(int i, int j)
Dataset
getObject
in interface Dataset
getObject
in class CompoundDoubleDataset
i
- position in first dimensionj
- position in second dimensionpublic Object getObject(int... pos)
getObject
in interface IDataset
getObject
in class CompoundDoubleDataset
pos
- positionpublic double getReal()
public double getReal(int i)
i
- position in first dimensionpublic double getReal(int i, int j)
i
- position in first dimensionj
- position in second dimensionpublic double getReal(int... pos)
pos
- positionpublic double getImag()
public double getImag(int i)
i
- position in first dimensionpublic double getImag(int i, int j)
i
- position in first dimensionj
- position in second dimensionpublic double getImag(int... pos)
pos
- positionpublic org.apache.commons.math3.complex.Complex getComplex()
public org.apache.commons.math3.complex.Complex getComplex(int i)
i
- position in first dimensionpublic org.apache.commons.math3.complex.Complex getComplex(int i, int j)
i
- position in first dimensionj
- position in second dimensionpublic org.apache.commons.math3.complex.Complex getComplex(int... pos)
pos
- positionpublic void set(Object obj, int i)
Dataset
set
in interface Dataset
set
in class CompoundDoubleDataset
obj
- value to seti
- position in first dimensionpublic void set(Object obj, int i, int j)
Dataset
set
in interface Dataset
set
in class CompoundDoubleDataset
obj
- value to seti
- position in first dimensionj
- position in second dimensionpublic void set(Object obj, int... pos)
IDataset
set
in interface IDataset
set
in class CompoundDoubleDataset
obj
- value to setpos
- positionpublic void set(double dr, double di, int i)
dr
- real partdi
- imaginary parti
- position in first dimensionpublic void set(double dr, double di, int i, int j)
dr
- real partdi
- imaginary parti
- position in first dimensionj
- position in second dimensionpublic void set(double dr, double di, int... pos)
dr
- real partdi
- imaginary partpos
- positionpublic DoubleDataset getRealPart()
getRealPart
in interface Dataset
getRealPart
in class AbstractDataset
public DoubleDataset getRealView()
getRealView
in interface Dataset
getRealView
in class AbstractDataset
public DoubleDataset getImaginaryPart()
public DoubleDataset getImaginaryView()
public Number max(boolean... switches)
max
in interface IDataset
max
in class AbstractCompoundDataset
switches
- - 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.public Number min(boolean... switches)
min
in interface IDataset
min
in class AbstractCompoundDataset
switches
- - see IDataset.max(boolean...)
public Object sum(boolean... switches)
sum
in interface Dataset
sum
in class AbstractCompoundDataset
switches
- - see IDataset.max(boolean...)
public Object mean(boolean... switches)
mean
in interface IDataset
mean
in class AbstractCompoundDataset
switches
- - see IDataset.max(boolean...)
public int[] maxPos(boolean... switches)
maxPos
in interface IDataset
maxPos
in class AbstractCompoundDataset
switches
- - see IDataset.max(boolean...)
public int[] minPos(boolean... switches)
minPos
in interface IDataset
minPos
in class AbstractCompoundDataset
switches
- - see IDataset.max(boolean...)
public ComplexDoubleDataset getSlice(SliceIterator siter)
AbstractDataset
getSlice
in class CompoundDoubleDataset
siter
- Slice iteratorpublic ComplexDoubleDataset setSlice(Object o, IndexIterator siter)
setSlice
in interface CompoundDataset
setSlice
in interface Dataset
setSlice
in class CompoundDoubleDataset
o
- specifies the object used to set the specified slicesiter
- specifies the slice iteratorpublic ComplexDoubleDataset iadd(Object b)
Dataset
iadd
in interface CompoundDataset
iadd
in interface Dataset
iadd
in class CompoundDoubleDataset
b
- object to usepublic ComplexDoubleDataset isubtract(Object b)
Dataset
isubtract
in interface CompoundDataset
isubtract
in interface Dataset
isubtract
in class CompoundDoubleDataset
b
- object to usepublic ComplexDoubleDataset imultiply(Object b)
Dataset
imultiply
in interface CompoundDataset
imultiply
in interface Dataset
imultiply
in class CompoundDoubleDataset
b
- object to usepublic ComplexDoubleDataset idivide(Object b)
Dataset
idivide
in interface CompoundDataset
idivide
in interface Dataset
idivide
in class CompoundDoubleDataset
b
- object to usepublic ComplexDoubleDataset iremainder(Object b)
Dataset
iremainder
in interface CompoundDataset
iremainder
in interface Dataset
iremainder
in class CompoundDoubleDataset
b
- object to usepublic ComplexDoubleDataset ipower(Object b)
Dataset
ipower
in interface CompoundDataset
ipower
in interface Dataset
ipower
in class CompoundDoubleDataset
b
- object to usepublic double residual(Object b, Dataset w, boolean ignoreNaNs)
Dataset
residual
in interface Dataset
residual
in class CompoundDoubleDataset
b
- object to usew
- to useignoreNaNs
- if true, skip NaNsCopyright © 2014–2022 Eclipse Foundation. All rights reserved.