|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.data.AbstractDataFrame
public abstract class AbstractDataFrame
Abstract implementation of DataFrame.
Field Summary | |
---|---|
protected ucar.ma2.Array |
array
|
protected Axes<DataFrameAxis> |
axes
|
protected java.util.List<Dataset> |
datasets
|
protected double |
max
|
protected double |
min
|
protected Variable |
variable
|
Constructor Summary | |
---|---|
AbstractDataFrame()
|
Method Summary | |
---|---|
private int[] |
createExtents(Slice slice)
|
private int[] |
createOrigins(Slice slice)
|
private void |
fillExtents(int[] extents,
Range range,
DataFrameAxis axis)
|
private void |
fillOrigin(int[] origins,
Range range,
DataFrameAxis axis)
|
ucar.ma2.Array |
getArray()
Gets the Array that contains the data. |
java.lang.Class<?> |
getArrayType()
Gets the element type contained by the data array. |
Axes<DataFrameAxis> |
getAxes()
Gets metadata describing this data frame's axes. |
java.util.List<Dataset> |
getDataset()
Gets the dataset that produced this DataFrame. |
double |
getDouble(DataFrameIndex index)
Gets the item at the specified indices as a double. |
float |
getFloat(DataFrameIndex index)
Gets the item at the specified indices as a float. |
DataFrameIndex |
getIndex()
Gets a DataFrameIndex used to retrieve data from this DataFrame. |
int |
getInt(DataFrameIndex index)
Gets the item at the specified indices as an int. |
long |
getLong(DataFrameIndex index)
Gets the item at the specified indices as a long. |
int[] |
getShape()
Gets the shape - the array dimensionality - of this DataFrame. |
long |
getSize()
Gets the total number of items in the data array. |
Variable |
getVariable()
Gets the variable associated with this DataFrame. |
DataFrame |
slice(Slice slice)
Creates a new DataFrame that is a slice or subsection of this one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ucar.ma2.Array array
protected Axes<DataFrameAxis> axes
protected java.util.List<Dataset> datasets
protected Variable variable
protected double min
protected double max
Constructor Detail |
---|
public AbstractDataFrame()
Method Detail |
---|
public ucar.ma2.Array getArray()
getArray
in interface DataFrame
public Axes<DataFrameAxis> getAxes()
getAxes
in interface DataFrame
public java.util.List<Dataset> getDataset()
getDataset
in interface DataFrame
public DataFrameIndex getIndex()
getIndex
in interface DataFrame
public Variable getVariable()
getVariable
in interface DataFrame
public java.lang.Class<?> getArrayType()
getArrayType
in interface DataFrame
public double getDouble(DataFrameIndex index)
getDouble
in interface DataFrame
index
- the index of the data to retrieve.
public float getFloat(DataFrameIndex index)
getFloat
in interface DataFrame
index
- the index of the data to retrieve.
public int getInt(DataFrameIndex index)
getInt
in interface DataFrame
index
- the index of the data to retrieve.
public long getLong(DataFrameIndex index)
getLong
in interface DataFrame
index
- the index of the data to retrieve.
public long getSize()
getSize
in interface DataFrame
public int[] getShape()
getShape
in interface DataFrame
public DataFrame slice(Slice slice) throws ucar.ma2.InvalidRangeException
slice
in interface DataFrame
slice
- describes the slice of data contained by the new DataFrame.
ucar.ma2.InvalidRangeException
- if the slice is not within the range of this DataFrame's
dimensions.private int[] createExtents(Slice slice)
private void fillExtents(int[] extents, Range range, DataFrameAxis axis)
private void fillOrigin(int[] origins, Range range, DataFrameAxis axis)
private int[] createOrigins(Slice slice)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |