org.jfree.data.xy
Class NormalizedMatrixSeries
- Cloneable, Serializable
Represents a dense normalized matrix M[i,j] where each Mij item of the
matrix has a value (default is 0). When a matrix item is observed using
getItem
method, it is normalized, that is, divided by the
total sum of all items. It can be also be scaled by setting a scale factor.
Number | getItem(int itemIndex) - Returns an item.
|
double | getScaleFactor() - Returns the factor that multiplies each item in this series when
observed using getItem mehtod.
|
void | setScaleFactor(double factor) - Sets the factor that multiplies each item in this series when observed
using getItem mehtod.
|
void | update(int i, int j, double mij)
|
void | zeroAll()
|
addChangeListener , addPropertyChangeListener , clone , equals , firePropertyChange , fireSeriesChanged , getDescription , getKey , getNotify , hashCode , notifyListeners , removeChangeListener , removePropertyChangeListener , setDescription , setKey , setNotify |
NormalizedMatrixSeries
public NormalizedMatrixSeries(String name,
int rows,
int columns)
Constructor for NormalizedMatrixSeries.
name
- the series name.rows
- the number of rows.columns
- the number of columns.
getScaleFactor
public double getScaleFactor()
Returns the factor that multiplies each item in this series when
observed using getItem mehtod.
setScaleFactor
public void setScaleFactor(double factor)
Sets the factor that multiplies each item in this series when observed
using getItem mehtod.
factor
- new factor to set.