public class ComplexFloatDataset extends CompoundFloatDataset
data
isize
base, BLOCK_CLOSE, BLOCK_OPEN, odata, offset, size, stride, stringFormat
catchExceptions, logger, 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, STRING
Modifier and Type | Method and Description |
---|---|
ComplexFloatDataset |
clone()
Clone dataset
|
ComplexFloatDataset |
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.
|
int |
getDType() |
float |
getImag() |
float |
getImag(int... pos) |
float |
getImag(int i) |
float |
getImag(int i,
int j) |
FloatDataset |
getImaginaryPart() |
FloatDataset |
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.
|
float |
getReal() |
float |
getReal(int... pos) |
float |
getReal(int i) |
float |
getReal(int i,
int j) |
FloatDataset |
getRealPart() |
FloatDataset |
getRealView() |
ComplexFloatDataset |
getSlice(SliceIterator siter)
Get a slice of the dataset.
|
String |
getStringAbs(int index)
Get an item from given absolute index as a string.
|
ComplexFloatDataset |
getView(boolean deepCopyMetadata) |
ComplexFloatDataset |
iadd(Object b)
In-place addition with object o
|
ComplexFloatDataset |
idivide(Object b)
In-place division with object o
|
ComplexFloatDataset |
imultiply(Object b)
In-place multiplication with object o
|
ComplexFloatDataset |
ipower(Object b)
In-place raise to power of object o
|
ComplexFloatDataset |
iremainder(Object b)
In-place remainder
|
ComplexFloatDataset |
isubtract(Object b)
In-place subtraction with object o
|
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 o and weight.
|
void |
set(float dr,
float di,
int... pos)
Set real and imaginary values at given position
|
void |
set(float dr,
float di,
int i)
Set real and imaginary values at given position
|
void |
set(float dr,
float 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,
float real,
float 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.
|
ComplexFloatDataset |
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, getSliceIterator, getSliceView, getSliceView, getSliceView, getTransposedView, getUniqueItems, ifloorDivide, 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, getError, getErrorBuffer, getFirst1DIndex, getIndices, getInternalSquaredError, getItemBytes, getIterator, getMaxLineLength, getNbytes, getNDPosition, getOffset, getPositionIterator, getRank, getShape, getShapeRef, getSize, getSliceIterator, getSliceIteratorFromAxes, getStats, getStrides, getStringStats, hasFloatingPointElements, isCompatibleWith, isComplex, 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, clearMetadata, copyMetadata, copyMetadata, createFromSerializable, dirtyMetadata, findMetadataTypeSubInterfaces, getElementClass, 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, getError, getErrorBuffer, getIndices, getIterator, getNbytes, getNDPosition, getOffset, getPositionIterator, getShapeRef, getSliceIterator, getSliceIteratorFromAxes, getStrides, hasFloatingPointElements, isCompatibleWith, isComplex, 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 int getDType()
getDType
in interface Dataset
getDType
in class CompoundFloatDataset
public ComplexFloatDataset clone()
ILazyDataset
clone
in interface CompoundDataset
clone
in interface Dataset
clone
in interface IDataset
clone
in interface ILazyDataset
clone
in class CompoundFloatDataset
public ComplexFloatDataset fill(Object obj)
Dataset
fill
in interface CompoundDataset
fill
in interface Dataset
fill
in class CompoundFloatDataset
public ComplexFloatDataset getView(boolean deepCopyMetadata)
getView
in interface CompoundDataset
getView
in interface Dataset
getView
in class CompoundFloatDataset
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 CompoundFloatDataset
public String getStringAbs(int index)
Dataset
getStringAbs
in interface Dataset
getStringAbs
in class CompoundFloatDataset
public 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 CompoundFloatDataset
public void setAbs(int index, float real, float imag)
index
- absolute indexreal
- imag
- public org.apache.commons.math3.complex.Complex get()
public org.apache.commons.math3.complex.Complex get(int i)
i
- public org.apache.commons.math3.complex.Complex get(int i, int j)
i
- j
- public org.apache.commons.math3.complex.Complex get(int... pos)
pos
- public Object getObject()
Dataset
getObject
in interface Dataset
getObject
in class CompoundFloatDataset
public Object getObject(int i)
Dataset
getObject
in interface Dataset
getObject
in class CompoundFloatDataset
public Object getObject(int i, int j)
Dataset
getObject
in interface Dataset
getObject
in class CompoundFloatDataset
public Object getObject(int... pos)
getObject
in interface IDataset
getObject
in class CompoundFloatDataset
public float getReal()
public float getReal(int i)
i
- public float getReal(int i, int j)
i
- j
- public float getReal(int... pos)
pos
- public float getImag()
public float getImag(int i)
i
- public float getImag(int i, int j)
i
- j
- public float getImag(int... pos)
pos
- public org.apache.commons.math3.complex.Complex getComplex()
public org.apache.commons.math3.complex.Complex getComplex(int i)
i
- public org.apache.commons.math3.complex.Complex getComplex(int i, int j)
i
- j
- public org.apache.commons.math3.complex.Complex getComplex(int... pos)
pos
- public void set(Object obj, int i)
Dataset
set
in interface Dataset
set
in class CompoundFloatDataset
public void set(Object obj, int i, int j)
Dataset
set
in interface Dataset
set
in class CompoundFloatDataset
public void set(Object obj, int... pos)
IDataset
set
in interface IDataset
set
in class CompoundFloatDataset
public void set(float dr, float di, int i)
dr
- di
- i
- public void set(float dr, float di, int i, int j)
dr
- di
- i
- j
- public void set(float dr, float di, int... pos)
dr
- di
- pos
- public FloatDataset getRealPart()
getRealPart
in interface Dataset
getRealPart
in class AbstractDataset
public FloatDataset getRealView()
getRealView
in interface Dataset
getRealView
in class AbstractDataset
public FloatDataset getImaginaryPart()
public FloatDataset 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 ComplexFloatDataset getSlice(SliceIterator siter)
AbstractDataset
getSlice
in class CompoundFloatDataset
siter
- Slice iteratorpublic ComplexFloatDataset setSlice(Object o, IndexIterator siter)
setSlice
in interface CompoundDataset
setSlice
in interface Dataset
setSlice
in class CompoundFloatDataset
o
- specifies the object used to set the specified slicesiter
- specifies the slice iteratorpublic ComplexFloatDataset iadd(Object b)
Dataset
iadd
in interface CompoundDataset
iadd
in interface Dataset
iadd
in class CompoundFloatDataset
public ComplexFloatDataset isubtract(Object b)
Dataset
isubtract
in interface CompoundDataset
isubtract
in interface Dataset
isubtract
in class CompoundFloatDataset
public ComplexFloatDataset imultiply(Object b)
Dataset
imultiply
in interface CompoundDataset
imultiply
in interface Dataset
imultiply
in class CompoundFloatDataset
public ComplexFloatDataset idivide(Object b)
Dataset
idivide
in interface CompoundDataset
idivide
in interface Dataset
idivide
in class CompoundFloatDataset
public ComplexFloatDataset iremainder(Object b)
Dataset
iremainder
in interface CompoundDataset
iremainder
in interface Dataset
iremainder
in class CompoundFloatDataset
public ComplexFloatDataset ipower(Object b)
Dataset
ipower
in interface CompoundDataset
ipower
in interface Dataset
ipower
in class CompoundFloatDataset
public double residual(Object b, Dataset w, boolean ignoreNaNs)
Dataset
residual
in interface Dataset
residual
in class CompoundFloatDataset
ignoreNaNs
- if true, skip NaNsCopyright © 2014–2019 Eclipse Foundation. All rights reserved.