public class RhythmPattern
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
bx |
int |
by |
private static int |
DEFAULT_bx |
private static int |
DEFAULT_by |
private double[][] |
mat |
private double |
maxv |
private double |
minv |
private java.awt.Color[] |
palette |
private int |
xdim |
private int |
ydim |
Constructor and Description |
---|
RhythmPattern(double[] vec)
This constructor uses pre-defined hard-coded values; it is not recommended to use this constructor it is intended
for backward compatibility for RP feature vector files without the $DATA_TYPE header
|
RhythmPattern(double[] vec,
int xdim,
int ydim)
this constructor uses default graphics block size
|
RhythmPattern(double[] vec,
int xdim,
int ydim,
int blocksize_x,
int blocksize_y) |
RhythmPattern(cern.colt.matrix.DoubleMatrix1D vec)
This constructor uses pre-defined hard-coded values; it is not recommended to use this constructor it is intended
for backward compatibility for RP feature vector files without the $DATA_TYPE header
|
RhythmPattern(cern.colt.matrix.DoubleMatrix1D vec,
int xdim,
int ydim)
constructor with feature vector given as DoubleMatrix1D (as provided by class SOMLibSparseInputData)
|
RhythmPattern(cern.colt.matrix.DoubleMatrix1D vec,
int xdim,
int ydim,
int blocksize_x,
int blocksize_y) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
getImage() |
double[][] |
getMatrix() |
java.awt.Dimension |
getSize() |
int |
getXdim() |
int |
getYdim() |
private java.awt.Color[] |
initMatlabPalette()
this palette is the MATLAB jet colormap it consists of 6 fixed color values which are interpolated through 64
values
|
private void |
initPaint() |
void |
paint(java.awt.Graphics g)
paints on Graphics object provided (either by local method or by a Dialog window)
|
private int xdim
private int ydim
private double[][] mat
private double minv
private double maxv
private static final int DEFAULT_bx
private static final int DEFAULT_by
public int bx
public int by
private java.awt.Color[] palette
public RhythmPattern(double[] vec) throws DataDimensionException
DataDimensionException
public RhythmPattern(double[] vec, int xdim, int ydim) throws DataDimensionException
vec
- feature vector given as double[] array (as used for weight vectors)xdim
- the RP matrix dimension (x)ydim
- the RP matrix dimension (y)DataDimensionException
public RhythmPattern(double[] vec, int xdim, int ydim, int blocksize_x, int blocksize_y) throws DataDimensionException
vec
- feature vector given as double[] array (as used for weight vectors)xdim
- the RP matrix dimension (x)ydim
- the RP matrix dimension (y)blocksize_x
- the blocksize for a RP graphics data point (x)blocksize_y
- the blocksize for a RP graphics data point (y)DataDimensionException
public RhythmPattern(cern.colt.matrix.DoubleMatrix1D vec) throws DataDimensionException
DataDimensionException
public RhythmPattern(cern.colt.matrix.DoubleMatrix1D vec, int xdim, int ydim) throws DataDimensionException
DataDimensionException
public RhythmPattern(cern.colt.matrix.DoubleMatrix1D vec, int xdim, int ydim, int blocksize_x, int blocksize_y) throws DataDimensionException
vec
- feature vector given as DoubleMatrix1D (as provided by class SOMLibSparseInputData)xdim
- the RP matrix dimension (x)ydim
- the RP matrix dimension (y)blocksize_x
- the blocksize for a RP graphics data point (x)blocksize_y
- the blocksize for a RP graphics data point (y)DataDimensionException
private void initPaint()
public int getXdim()
public int getYdim()
public java.awt.Dimension getSize()
public double[][] getMatrix()
public java.awt.image.BufferedImage getImage()
public void paint(java.awt.Graphics g)
private java.awt.Color[] initMatlabPalette()