|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.visualization.VisualizationProjection
public class VisualizationProjection
Class to encapsulate a projection as used in SVG plotting and UI, which will often be just 2D, but should ideally support any projection onto a 2D plane.
| Field Summary | |
|---|---|
private int |
dim
Database dimensionality |
private AffineTransformation |
proj
Affine transformation used in projection |
static double |
SCALE
Scaling constant. |
private LinearScale[] |
scales
Scales in data set |
| Constructor Summary | |
|---|---|
VisualizationProjection(Database<? extends NumberVector<?,?>> db,
LinearScale[] scales,
AffineTransformation proj)
Constructor with a given database and axes. |
|
VisualizationProjection(Database<? extends NumberVector<?,?>> db,
LinearScale[] scales,
int ax1,
int ax2)
Constructor with a given database and axes. |
|
| Method Summary | ||
|---|---|---|
static AffineTransformation |
axisProjection(int dim,
int ax1,
int ax2)
Compute an transformation matrix to show only axis ax1 and ax2. |
|
String |
estimateTransformString(double margin,
double width,
double height)
Get a SVG transformation string to bring the contents into the unit cube. |
|
Pair<MinMax<Double>,MinMax<Double>> |
estimateViewport()
Estimate the viewport requirements |
|
double |
getScale()
Global scaling function. |
|
LinearScale |
getScale(int d)
Get the scales used, for rendering scales mostly. |
|
Vector |
projectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space. |
|
Vector |
projectDataToRenderSpace(NumberVector<?,?> data)
Project a data vector from data space to rendering space. |
|
Vector |
projectDataToScaledSpace(double[] data)
Project a data vector from data space to scaled space. |
|
Vector |
projectDataToScaledSpace(NumberVector<?,?> data)
Project a data vector from data space to scaled space. |
|
Vector |
projectRelativeDataToRenderSpace(double[] data)
Project a relative data vector from data space to rendering space. |
|
Vector |
projectRelativeDataToRenderSpace(NumberVector<?,?> data)
Project a relative data vector from data space to rendering space. |
|
Vector |
projectRelativeDataToScaledSpace(double[] data)
Project a relative data vector from data space to scaled space. |
|
Vector |
projectRelativeDataToScaledSpace(NumberVector<?,?> data)
Project a relative data vector from data space to scaled space. |
|
|
projectRelativeRenderToDataSpace(Vector v,
NV sampleobject)
Project a relative vector from rendering space to data space. |
|
Vector |
projectRelativeRenderToScaled(Vector v)
Project a relative vector from rendering space to scaled space. |
|
|
projectRelativeScaledToDataSpace(Vector v,
NV sampleobject)
Project a relative vector from scaled space to data space. |
|
Vector |
projectRelativeScaledToRender(Vector v)
Project a relative vector from scaled space to rendering space. |
|
|
projectRenderToDataSpace(Vector v,
NV sampleobject)
Project a vector from rendering space to data space. |
|
Vector |
projectRenderToScaled(Vector v)
Project a vector from rendering space to scaled space. |
|
|
projectScaledToDataSpace(Vector v,
NV sampleobject)
Project a vector from scaled space to data space. |
|
Vector |
projectScaledToRender(Vector v)
Project a vector from scaled space to rendering space. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int dim
private LinearScale[] scales
private AffineTransformation proj
public static final double SCALE
StyleLibrary.SCALE.
| Constructor Detail |
|---|
public VisualizationProjection(Database<? extends NumberVector<?,?>> db,
LinearScale[] scales,
int ax1,
int ax2)
db - Databasescales - Scales to useax1 - First axisax2 - Second axis
public VisualizationProjection(Database<? extends NumberVector<?,?>> db,
LinearScale[] scales,
AffineTransformation proj)
db - Databasescales - Scales to useproj - Projection to use| Method Detail |
|---|
public Vector projectScaledToRender(Vector v)
v - vector in scaled space
public Vector projectRenderToScaled(Vector v)
v - vector in rendering space
public Vector projectRelativeScaledToRender(Vector v)
v - relative vector in scaled space
public Vector projectRelativeRenderToScaled(Vector v)
v - relative vector in rendering space
public Vector projectDataToScaledSpace(NumberVector<?,?> data)
data - vector in data space
public Vector projectDataToScaledSpace(double[] data)
data - vector in data space
public <NV extends NumberVector<NV,?>> NV projectScaledToDataSpace(Vector v,
NV sampleobject)
NV - Vector typev - vector in scaled spacesampleobject - Sample object needed for instantiation via
NumberVector.newInstance(double[])
public Vector projectRelativeDataToScaledSpace(NumberVector<?,?> data)
data - relative vector in data space
public Vector projectRelativeDataToScaledSpace(double[] data)
data - relative vector in data space
public <NV extends NumberVector<NV,?>> NV projectRelativeScaledToDataSpace(Vector v,
NV sampleobject)
NV - Vector typev - relative vector in scaled spacesampleobject - Sample object needed for instantiation via
NumberVector.newInstance(double[])
public Vector projectDataToRenderSpace(NumberVector<?,?> data)
data - vector in data space
public Vector projectDataToRenderSpace(double[] data)
data - vector in data space
public <NV extends NumberVector<NV,?>> NV projectRenderToDataSpace(Vector v,
NV sampleobject)
NV - Vector typev - vector in rendering spacesampleobject - Sample object needed for instantiation via
NumberVector.newInstance(double[])
public Vector projectRelativeDataToRenderSpace(NumberVector<?,?> data)
data - relative vector in data space
public Vector projectRelativeDataToRenderSpace(double[] data)
data - relative vector in data space
public <NV extends NumberVector<NV,?>> NV projectRelativeRenderToDataSpace(Vector v,
NV sampleobject)
NV - Vector typev - relative vector in rendering spacesampleobject - Sample object needed for instantiation via
NumberVector.newInstance(double[])
public LinearScale getScale(int d)
d - Dimension
public Pair<MinMax<Double>,MinMax<Double>> estimateViewport()
public String estimateTransformString(double margin,
double width,
double height)
margin - extra margin to add.width - Widthheight - Height
public static AffineTransformation axisProjection(int dim,
int ax1,
int ax2)
dim - Dimensionalityax1 - First axisax2 - Second axis
public double getScale()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||