|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.apps.viewer.RhythmPattern
public class RhythmPattern
Creates a visualization of Rhythm Pattern feature vectors.
Field Summary | |
---|---|
int |
bx
|
int |
by
|
private static int |
DEFAULT_bx
|
private static int |
DEFAULT_by
|
private double[][] |
mat
|
private double |
maxv
|
private double |
minv
|
private Color[] |
palette
|
private int |
xdim
|
private int |
ydim
|
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
BufferedImage |
getImage()
|
double[][] |
getMatrix()
|
Dimension |
getSize()
|
int |
getXdim()
|
int |
getYdim()
|
private 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(Graphics g)
paints on Graphics object provided (either by local method or by a Dialog window) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 Color[] palette
Constructor Detail |
---|
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
Method Detail |
---|
private void initPaint()
public int getXdim()
public int getYdim()
public Dimension getSize()
public double[][] getMatrix()
public BufferedImage getImage()
public void paint(Graphics g)
private Color[] initMatlabPalette()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |