public abstract class AbstractCompoundDataset extends AbstractDataset implements CompoundDataset
Modifier and Type | Field and Description |
---|---|
protected int |
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
Constructor and Description |
---|
AbstractCompoundDataset()
Constructor required for serialisation.
|
Modifier and Type | Method and Description |
---|---|
IntegerDataset |
argMax(int axis,
boolean... ignoreInvalids)
Find indices of maximum values along given axis
|
IntegerDataset |
argMin(int axis,
boolean... ignoreInvalids)
Find indices of minimum values along given axis
|
CompoundDataset |
cast(boolean repeat,
int dtype,
int isize)
Cast a dataset
|
CompoundDataset |
cast(int dtype)
Cast a dataset
|
abstract AbstractCompoundDataset |
clone()
Clone dataset
|
boolean |
equals(Object obj) |
CompoundDataset |
flatten()
Flatten shape
|
protected int |
get1DIndex(int i) |
protected int |
get1DIndex(int i,
int j) |
protected int |
get1DIndexFromShape(int[] n) |
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.
|
CompoundDataset |
getBroadcastView(int... broadcastShape) |
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 |
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.
|
protected StatisticsMetadata<double[]> |
getCompoundStats() |
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.
|
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
|
int |
getElementsPerItem() |
double |
getError(int... pos)
Get the error for a given position.
|
double |
getError(int i)
Get the error for given position.
|
double |
getError(int i,
int j)
Get the error for given position.
|
double[] |
getErrorArray(int... pos)
Get the error values for a single point in the dataset
|
double[] |
getErrorArray(int i)
Get the error values for given position
|
double[] |
getErrorArray(int i,
int j)
Get the error values for given position
|
CompoundDataset |
getErrors()
Get the errors, if any.
|
protected abstract double |
getFirstValue() |
protected abstract double |
getFirstValue(int... pos) |
protected abstract double |
getFirstValue(int i) |
protected abstract double |
getFirstValue(int i,
int j) |
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.
|
IndexIterator |
getIterator(boolean withPosition) |
IndexIterator |
getIterator(int element)
Get an iterator that picks out the chosen element from all items
|
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.
|
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.
|
abstract AbstractCompoundDataset |
getSlice(SliceIterator iterator)
Get a slice of the dataset.
|
CompoundDataset |
getSlice(SliceND slice)
Get a slice of the dataset.
|
IndexIterator |
getSliceIterator(SliceND slice) |
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:
|
Dataset |
getUniqueItems()
Get unique items
|
abstract AbstractCompoundDataset |
getView(boolean deepCopyMetadata) |
int |
hashCode() |
CompoundDataset |
ifloorDivide(Object o)
In-place floor division with object o
|
Number |
max(boolean... ignoreInvalids) |
CompoundDataset |
max(int axis,
boolean... ignoreInvalids) |
double[] |
maxItem()
Calculate maximum values of elements over all items in dataset
|
int[] |
maxPos(boolean... ignoreNaNs) |
Object |
mean(boolean... ignoreInvalids) |
CompoundDataset |
mean(int axis,
boolean... ignoreInvalids) |
Number |
min(boolean... ignoreInvalids) |
CompoundDataset |
min(int axis,
boolean... ignoreInvalids) |
double[] |
minItem()
Calculate minimum values of elements over all items in dataset
|
int[] |
minPos(boolean... ignoreNaNs) |
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
|
double |
rootMeanSquare(boolean... ignoreInvalids) |
CompoundDataset |
rootMeanSquare(int axis,
boolean... ignoreInvalids) |
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
|
Object |
sum(boolean... ignoreInvalids) |
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)
|
double |
variance(boolean isWholePopulation,
boolean... ignoreInvalids)
The sample variance can be calculated in two ways: if the dataset is considered as the
entire population then the sample variance is simply the second central moment:
|
CompoundDataset |
variance(int axis) |
CompoundDataset |
variance(int axis,
boolean isWholePopulation,
boolean... ignoreInvalids) |
all, all, any, any, argMax, argMin, calcSteps, cast, checkAxis, checkAxis, checkCompatibility, copy, copy, copyToView, count, count, count, createStrides, createStrides, createStrides, createStrides, fillData, get1DIndex, get1DIndexFromShape, getBooleanIterator, getBooleanIterator, getBuffer, getBufferLength, getElementClass, getError, getErrorBuffer, getFirst1DIndex, getIndices, getInternalSquaredError, getItemBytes, getIterator, getMaxLineLength, getNbytes, getNDPosition, getOffset, getPositionIterator, getRank, getRealPart, getRealView, getShape, getShapeRef, getSize, getSliceIterator, getSliceIteratorFromAxes, getStats, getStrides, getStringStats, hasFloatingPointElements, isCompatibleWith, isComplex, max, mean, min, overrideInternal, peakToPeak, peakToPeak, product, product, residual, residual, rootMeanSquare, setData, setErrorBuffer, setItemDirect, setMaxLineLength, setShape, setSlice, setStringFormat, stdDeviation, stdDeviation, stdDeviation, stdDeviation, sum, toString, toString, variance, variance, variance
addMetadata, checkPermutatedAxes, clearMetadata, copyMetadata, copyMetadata, createFromSerializable, dirtyMetadata, findMetadataTypeSubInterfaces, getDType, getErrorMetadata, getFirstMetadata, getMetadata, getMetadata, getMetadataMap, getName, hasErrors, reshapeMetadata, restoreMetadata, setDirty, setErrors, setMetadata, setName, sliceMetadata, transposeMetadata
finalize, getClass, notify, notifyAll, wait, wait, wait
asNonCompoundDataset, copyElements, fill, getByteArray, getByteArray, getByteArray, getByteArray, getDoubleArray, getDoubleArray, getDoubleArray, getDoubleArray, getDoubleArrayAbs, getElements, getElementsView, getFloatArray, getFloatArray, getFloatArray, getFloatArray, getIntArray, getIntArray, getIntArray, getIntArray, getLongArray, getLongArray, getLongArray, getLongArray, getShortArray, getShortArray, getShortArray, getShortArray, iadd, idivide, ifloor, imultiply, ipower, iremainder, isubtract, setBy1DIndex, setByBoolean, setByIndexes, setElements, setSlice
all, all, any, any, argMax, argMin, cast, checkAxis, checkCompatibility, containsInfs, containsInvalidNumbers, containsNans, copy, copy, copyItemsFromAxes, count, count, count, fillDataset, get1DIndex, getBooleanIterator, getBooleanIterator, getBuffer, getDType, getElementBooleanAbs, getElementDoubleAbs, getElementLongAbs, getError, getErrorBuffer, getIndices, getIterator, getNbytes, getNDPosition, getObject, getObject, getObject, getObjectAbs, getOffset, getPositionIterator, getRealPart, getRealView, getShapeRef, getSliceIterator, getSliceIteratorFromAxes, getStrides, getString, getString, getString, getStringAbs, hasFloatingPointElements, isCompatibleWith, isComplex, max, mean, min, overrideInternal, peakToPeak, peakToPeak, product, product, residual, residual, residual, rootMeanSquare, set, set, set, setDirty, setErrorBuffer, setItemsOnAxes, setObjectAbs, setSlice, stdDeviation, stdDeviation, stdDeviation, stdDeviation, sum, toString, variance, variance, variance
getItemBytes, getMetadata, getObject, getString, resize, set, setStringFormat
addMetadata, clearMetadata, getElementClass, getRank, getShape, getSize, hasErrors, setErrors, setMetadata, setShape
getFirstMetadata, getMetadata
protected int isize
public AbstractCompoundDataset()
public int getElementsPerItem()
getElementsPerItem
in interface ILazyDataset
getElementsPerItem
in class AbstractDataset
protected int get1DIndex(int i)
get1DIndex
in class AbstractDataset
protected int get1DIndex(int i, int j)
get1DIndex
in class AbstractDataset
protected int get1DIndexFromShape(int[] n)
get1DIndexFromShape
in class AbstractDataset
public Dataset getUniqueItems()
Dataset
getUniqueItems
in interface Dataset
public IndexIterator getIterator(boolean withPosition)
getIterator
in interface Dataset
getIterator
in class AbstractDataset
withPosition
- set true if position is neededpublic IndexIterator getIterator(int element)
element
- public IndexIterator getSliceIterator(SliceND slice)
getSliceIterator
in interface Dataset
getSliceIterator
in class AbstractDataset
slice
- an n-D slicepublic boolean equals(Object obj)
equals
in class LazyDatasetBase
public int hashCode()
hashCode
in class AbstractDataset
public CompoundDataset cast(boolean repeat, int dtype, int isize)
Dataset
cast
in interface CompoundDataset
cast
in interface Dataset
cast
in class AbstractDataset
dtype
- dataset typeisize
- item sizepublic CompoundDataset cast(int dtype)
Dataset
cast
in interface CompoundDataset
cast
in interface Dataset
cast
in class AbstractDataset
dtype
- dataset typepublic abstract AbstractCompoundDataset clone()
ILazyDataset
clone
in interface CompoundDataset
clone
in interface Dataset
clone
in interface IDataset
clone
in interface ILazyDataset
clone
in class AbstractDataset
public CompoundDataset flatten()
Dataset
flatten
in interface CompoundDataset
flatten
in interface Dataset
flatten
in class AbstractDataset
public CompoundDataset getBy1DIndex(IntegerDataset index)
Dataset
getBy1DIndex
in interface CompoundDataset
getBy1DIndex
in interface Dataset
getBy1DIndex
in class AbstractDataset
index
- an integer datasetpublic CompoundDataset getByBoolean(Dataset selection)
Dataset
getByBoolean
in interface CompoundDataset
getByBoolean
in interface Dataset
getByBoolean
in class AbstractDataset
selection
- a boolean dataset of same shape to use for selecting itemspublic CompoundDataset getByIndexes(Object... indexes)
Dataset
getByIndexes
in interface CompoundDataset
getByIndexes
in interface Dataset
getByIndexes
in class AbstractDataset
indexes
- an array of integer dataset, boolean dataset, slices or null entries (same as
full slices)public CompoundDataset getSlice(IMonitor mon, int[] start, int[] stop, int[] step)
ILazyDataset
getSlice
in interface CompoundDataset
getSlice
in interface Dataset
getSlice
in interface ILazyDataset
getSlice
in class AbstractDataset
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)public CompoundDataset getSlice(IMonitor mon, Slice... slice)
ILazyDataset
getSlice
in interface CompoundDataset
getSlice
in interface Dataset
getSlice
in interface ILazyDataset
getSlice
in class AbstractDataset
slice
- an array of slice objects (the array can be null or contain nulls)public CompoundDataset getSlice(IMonitor mon, SliceND slice)
ILazyDataset
getSlice
in interface CompoundDataset
getSlice
in interface Dataset
getSlice
in interface ILazyDataset
getSlice
in class AbstractDataset
slice
- an n-D slicepublic CompoundDataset getSlice(int[] start, int[] stop, int[] step)
ILazyDataset
getSlice
in interface CompoundDataset
getSlice
in interface Dataset
getSlice
in interface IDataset
getSlice
in interface ILazyDataset
getSlice
in class AbstractDataset
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)public CompoundDataset getSlice(Slice... slice)
ILazyDataset
getSlice
in interface CompoundDataset
getSlice
in interface Dataset
getSlice
in interface IDataset
getSlice
in interface ILazyDataset
getSlice
in class AbstractDataset
slice
- an array of slice objects (the array can be null or contain nulls)public CompoundDataset getSlice(SliceND slice)
AbstractDataset
getSlice
in interface CompoundDataset
getSlice
in interface Dataset
getSlice
in interface IDataset
getSlice
in interface ILazyDataset
getSlice
in class AbstractDataset
slice
- an n-D slicepublic abstract AbstractCompoundDataset getSlice(SliceIterator iterator)
AbstractDataset
getSlice
in class AbstractDataset
iterator
- Slice iteratorpublic CompoundDataset getSliceView(int[] start, int[] stop, int[] step)
IDataset
getSliceView
in interface CompoundDataset
getSliceView
in interface Dataset
getSliceView
in interface IDataset
getSliceView
in interface ILazyDataset
getSliceView
in class AbstractDataset
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)public CompoundDataset getSliceView(Slice... slice)
IDataset
getSliceView
in interface CompoundDataset
getSliceView
in interface Dataset
getSliceView
in interface IDataset
getSliceView
in interface ILazyDataset
getSliceView
in class AbstractDataset
slice
- an array of slice objects (the array can be null or contain nulls)public CompoundDataset getSliceView(SliceND slice)
AbstractDataset
getSliceView
in interface CompoundDataset
getSliceView
in interface Dataset
getSliceView
in interface IDataset
getSliceView
in interface ILazyDataset
getSliceView
in class AbstractDataset
slice
- an nD slice objectpublic CompoundDataset 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 CompoundDataset
getTransposedView
in interface Dataset
getTransposedView
in interface IDataset
getTransposedView
in interface ILazyDataset
getTransposedView
in class AbstractDataset
axes
- if zero length then axes order reversedpublic abstract AbstractCompoundDataset getView(boolean deepCopyMetadata)
getView
in interface CompoundDataset
getView
in interface Dataset
getView
in class AbstractDataset
deepCopyMetadata
- if true then deep-copy metadatapublic CompoundDataset getBroadcastView(int... broadcastShape)
getBroadcastView
in interface CompoundDataset
getBroadcastView
in interface Dataset
getBroadcastView
in class AbstractDataset
public CompoundDataset ifloorDivide(Object o)
Dataset
ifloorDivide
in interface CompoundDataset
ifloorDivide
in interface Dataset
ifloorDivide
in class AbstractDataset
public CompoundDataset reshape(int... shape)
Dataset
reshape
in interface CompoundDataset
reshape
in interface Dataset
reshape
in class AbstractDataset
shape
- new shapepublic CompoundDataset setSlice(Object obj, int[] start, int[] stop, int[] step)
Dataset
setSlice
in interface CompoundDataset
setSlice
in interface Dataset
setSlice
in class AbstractDataset
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 slicepublic CompoundDataset setSlice(Object object, Slice... slice)
Dataset
setSlice
in interface CompoundDataset
setSlice
in interface Dataset
setSlice
in class AbstractDataset
public CompoundDataset sort(Integer axis)
Dataset
sort
in interface CompoundDataset
sort
in interface Dataset
axis
- to sort along. If null, then the flattened view is sortedpublic CompoundDataset squeezeEnds()
ILazyDataset
squeezeEnds
in interface CompoundDataset
squeezeEnds
in interface Dataset
squeezeEnds
in interface IDataset
squeezeEnds
in interface ILazyDataset
squeezeEnds
in class AbstractDataset
public CompoundDataset squeeze()
IDataset
squeeze
in interface CompoundDataset
squeeze
in interface Dataset
squeeze
in interface IDataset
squeeze
in class AbstractDataset
public CompoundDataset squeeze(boolean onlyFromEnd)
IDataset
squeeze
in interface CompoundDataset
squeeze
in interface Dataset
squeeze
in interface IDataset
squeeze
in class AbstractDataset
public CompoundDataset swapAxes(int axis1, int axis2)
Dataset
swapAxes
in interface CompoundDataset
swapAxes
in interface Dataset
swapAxes
in class AbstractDataset
public CompoundDataset synchronizedCopy()
Dataset
synchronizedCopy
in interface CompoundDataset
synchronizedCopy
in interface Dataset
synchronizedCopy
in class AbstractDataset
public CompoundDataset transpose(int... axes)
Dataset
transpose
in interface CompoundDataset
transpose
in interface Dataset
transpose
in class AbstractDataset
protected abstract double getFirstValue()
protected abstract double getFirstValue(int i)
protected abstract double getFirstValue(int i, int j)
protected abstract double getFirstValue(int... pos)
public boolean getBoolean()
Dataset
getBoolean
in interface Dataset
public boolean getBoolean(int i)
Dataset
getBoolean
in interface Dataset
public boolean getBoolean(int i, int j)
Dataset
getBoolean
in interface Dataset
public boolean getBoolean(int... pos)
getBoolean
in interface IDataset
public byte getByte()
Dataset
public byte getByte(int i)
Dataset
public byte getByte(int i, int j)
Dataset
public byte getByte(int... pos)
public short getShort()
Dataset
public short getShort(int i)
Dataset
public short getShort(int i, int j)
Dataset
public short getShort(int... pos)
public int getInt()
Dataset
public int getInt(int i)
Dataset
public int getInt(int i, int j)
Dataset
public int getInt(int... pos)
public long getLong()
Dataset
public long getLong(int i)
Dataset
public long getLong(int i, int j)
Dataset
public long getLong(int... pos)
public float getFloat()
Dataset
public float getFloat(int i)
Dataset
public float getFloat(int i, int j)
Dataset
public float getFloat(int... pos)
public double getDouble()
Dataset
public double getDouble(int i)
Dataset
public double getDouble(int i, int j)
Dataset
public double getDouble(int... pos)
public void getDoubleArray(double[] darray)
CompoundDataset
getDoubleArray
in interface CompoundDataset
darray
- double array must be allocated and have sufficient lengthpublic void getDoubleArray(double[] darray, int i)
CompoundDataset
getDoubleArray
in interface CompoundDataset
darray
- double array must be allocated and have sufficient lengthpublic void getDoubleArray(double[] darray, int i, int j)
CompoundDataset
getDoubleArray
in interface CompoundDataset
darray
- double array must be allocated and have sufficient lengthpublic void getDoubleArray(double[] darray, int... pos)
CompoundDataset
getDoubleArray
in interface CompoundDataset
darray
- double array must be allocated and have sufficient lengthprotected StatisticsMetadata<double[]> getCompoundStats()
public IntegerDataset argMax(int axis, boolean... ignoreInvalids)
Dataset
argMax
in interface Dataset
argMax
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public IntegerDataset argMin(int axis, boolean... ignoreInvalids)
Dataset
argMin
in interface Dataset
argMin
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public Number max(boolean... ignoreInvalids)
max
in interface IDataset
max
in class AbstractDataset
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.public CompoundDataset max(int axis, boolean... ignoreInvalids)
max
in interface CompoundDataset
max
in interface Dataset
max
in class AbstractDataset
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.public Number min(boolean... ignoreInvalids)
min
in interface IDataset
min
in class AbstractDataset
ignoreInvalids
- - see IDataset.max(boolean...)
public CompoundDataset min(int axis, boolean... ignoreInvalids)
min
in interface CompoundDataset
min
in interface Dataset
min
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public int[] maxPos(boolean... ignoreNaNs)
maxPos
in interface IDataset
ignoreNaNs
- - see IDataset.max(boolean...)
public int[] minPos(boolean... ignoreNaNs)
minPos
in interface IDataset
ignoreNaNs
- - see IDataset.max(boolean...)
public CompoundDataset peakToPeak(int axis, boolean... ignoreInvalids)
peakToPeak
in interface CompoundDataset
peakToPeak
in interface Dataset
peakToPeak
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public double[] maxItem()
CompoundDataset
maxItem
in interface CompoundDataset
public double[] minItem()
CompoundDataset
minItem
in interface CompoundDataset
public Object mean(boolean... ignoreInvalids)
mean
in interface IDataset
mean
in class AbstractDataset
ignoreInvalids
- - see IDataset.max(boolean...)
public CompoundDataset mean(int axis, boolean... ignoreInvalids)
mean
in interface CompoundDataset
mean
in interface Dataset
mean
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public CompoundDataset product(int axis, boolean... ignoreInvalids)
product
in interface CompoundDataset
product
in interface Dataset
product
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public CompoundDataset rootMeanSquare(int axis, boolean... ignoreInvalids)
rootMeanSquare
in interface CompoundDataset
rootMeanSquare
in interface Dataset
rootMeanSquare
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public CompoundDataset stdDeviation(int axis)
Dataset
stdDeviation
in interface CompoundDataset
stdDeviation
in interface Dataset
stdDeviation
in class AbstractDataset
with isWholePopulation = false
public CompoundDataset stdDeviation(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
Dataset
stdDeviation
in interface CompoundDataset
stdDeviation
in interface Dataset
stdDeviation
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public Object sum(boolean... ignoreInvalids)
sum
in interface Dataset
sum
in class AbstractDataset
ignoreInvalids
- - see IDataset.max(boolean...)
public CompoundDataset sum(int axis, boolean... ignoreInvalids)
sum
in interface CompoundDataset
sum
in interface Dataset
sum
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public double variance(boolean isWholePopulation, boolean... ignoreInvalids)
Dataset
sum((x_i - m)^2)/N where {x_i} are set of N population values and m is the mean m = sum(x_i)/NOtherwise, if the dataset is a set of samples (with replacement) from the population then
sum((x_i - m)^2)/(N-1) where {x_i} are set of N sample values and m is the unbiased estimate of the mean m = sum(x_i)/NNote that the second definition is also the unbiased estimator of population variance.
variance
in interface Dataset
variance
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public CompoundDataset variance(int axis)
variance
in interface CompoundDataset
variance
in interface Dataset
variance
in class AbstractDataset
with isWholePopulation = false
public CompoundDataset variance(int axis, boolean isWholePopulation, boolean... ignoreInvalids)
variance
in interface CompoundDataset
variance
in interface Dataset
variance
in class AbstractDataset
ignoreInvalids
- - see Dataset.max(int, boolean...)
public double rootMeanSquare(boolean... ignoreInvalids)
rootMeanSquare
in interface Dataset
rootMeanSquare
in class AbstractDataset
ignoreInvalids
- - see IDataset.max(boolean...)
public CompoundDataset getErrors()
ILazyDataset
getErrors
in interface CompoundDataset
getErrors
in interface Dataset
getErrors
in interface IDataset
getErrors
in interface ILazyDataset
getErrors
in class AbstractDataset
public double getError(int i)
Dataset
getError
in interface Dataset
getError
in class AbstractDataset
public double getError(int i, int j)
Dataset
getError
in interface Dataset
getError
in class AbstractDataset
public double getError(int... pos)
IDataset
getError
in interface IDataset
getError
in class AbstractDataset
public double[] getErrorArray(int i)
Dataset
getErrorArray
in interface Dataset
getErrorArray
in class AbstractDataset
public double[] getErrorArray(int i, int j)
Dataset
getErrorArray
in interface Dataset
getErrorArray
in class AbstractDataset
public double[] getErrorArray(int... pos)
IDataset
getErrorArray
in interface IDataset
getErrorArray
in class AbstractDataset
pos
- of the point to be referencedCopyright © 2014–2018 Eclipse Foundation. All rights reserved.