public class

NormalizedMatrixSeries

extends MatrixSeries
java.lang.Object
   ↳ org.jfree.data.general.Series
     ↳ org.jfree.data.xy.MatrixSeries
       ↳ org.jfree.data.xy.NormalizedMatrixSeries

Class Overview

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.

Summary

Constants
double DEFAULT_SCALE_FACTOR The default scale factor.
[Expand]
Inherited Fields
From class org.jfree.data.xy.MatrixSeries
Public Constructors
NormalizedMatrixSeries(String name, int rows, int columns)
Constructor for NormalizedMatrixSeries.
Public Methods
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)
Updates the value of the specified item in this matrix series.
void zeroAll()
Sets all matrix values to zero and sends a SeriesChangeEvent to all registered listeners.
[Expand]
Inherited Methods
From class org.jfree.data.xy.MatrixSeries
From class org.jfree.data.general.Series
From class java.lang.Object

Constants

public static final double DEFAULT_SCALE_FACTOR

The default scale factor.

Constant Value: 1.0

Public Constructors

public NormalizedMatrixSeries (String name, int rows, int columns)

Constructor for NormalizedMatrixSeries.

Parameters
name the series name.
rows the number of rows.
columns the number of columns.

Public Methods

public Number getItem (int itemIndex)

Returns an item.

Parameters
itemIndex the index.
Returns
  • The value.
See Also

public double getScaleFactor ()

Returns the factor that multiplies each item in this series when observed using getItem mehtod.

Returns
  • The factor

public void setScaleFactor (double factor)

Sets the factor that multiplies each item in this series when observed using getItem mehtod.

Parameters
factor new factor to set.

public void update (int i, int j, double mij)

Updates the value of the specified item in this matrix series.

Parameters
i the row of the item.
j the column of the item.
mij the new value for the item.
See Also

public void zeroAll ()

Sets all matrix values to zero and sends a SeriesChangeEvent to all registered listeners.

See Also