Class AbstractMatrix<R,C>
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,java.lang.Number>
-
- com.macrofocus.molap.dataframe.matrix.AbstractMatrix<R,C>
-
- Direct Known Subclasses:
CacheDistanceMatrix
,CacheMatrix
,CalibratedDistanceMatrix
,ColumnCorrelationMatrix
,NormalizedMatrix
,OpMatrix
,SimpleMutableMatrix
,StatMatrix
public abstract class AbstractMatrix<R,C> extends AbstractDataFrame<R,C,java.lang.Number> implements Matrix<R,C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description AbstractMatrix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getColumnClass(C c)
Returns the most specific superclass for all cell values in a columnVector<R>
getColumnVector(C column)
Series<C,?>
getRow(R r)
Returns a series of all the values of a given row.java.lang.Class
getRowClass(R r)
Returns the most specific superclass for all cell values in a row.Vector<C>
getRowVector(R row)
java.lang.Number
getValueAt(R r, C c)
Returns the value for the cell at the intersection of thecolumn
key androw
key.boolean
isAvailable(R row, C column)
DataFrame
join(Series series, C[] cs)
-
Methods inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnCount, getColumnKey, getColumnName, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getCube, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, notifyDataFrameChanged, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.dataframe.DataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnCount, getColumnIndex, getColumnKey, getColumnName, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowIndex, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
Methods inherited from interface com.macrofocus.molap.dataframe.matrix.Matrix
getDouble, scalarDivide, scalarMult, scalarPlus
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable(R row, C column)
- Specified by:
isAvailable
in interfaceMatrix<R,C>
-
getValueAt
public java.lang.Number getValueAt(R r, C c)
Description copied from interface:DataFrame
Returns the value for the cell at the intersection of thecolumn
key androw
key.- Specified by:
getValueAt
in interfaceDataFrame<R,C,java.lang.Number>
- Parameters:
r
- the row key whose value is to be queriedc
- the column key whose value is to be queried- Returns:
- the value Object at the specified cell
-
getRowClass
public java.lang.Class getRowClass(R r)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a row.- Specified by:
getRowClass
in interfaceDataFrame<R,C,java.lang.Number>
- Parameters:
r
- the key of the row- Returns:
- the common ancestor class of the object values in the row.
-
getColumnClass
public java.lang.Class getColumnClass(C c)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a column- Specified by:
getColumnClass
in interfaceDataFrame<R,C,java.lang.Number>
- Parameters:
c
- the key of the column- Returns:
- the common ancestor class of the object values in the column.
-
getRowVector
public Vector<C> getRowVector(R row)
- Specified by:
getRowVector
in interfaceMatrix<R,C>
-
getColumnVector
public Vector<R> getColumnVector(C column)
- Specified by:
getColumnVector
in interfaceMatrix<R,C>
-
getRow
public Series<C,?> getRow(R r)
Description copied from interface:DataFrame
Returns a series of all the values of a given row.
-
-