|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult de.lmu.ifi.dbs.elki.visualization.projections.AbstractProjection de.lmu.ifi.dbs.elki.visualization.projections.AbstractSimpleProjection de.lmu.ifi.dbs.elki.visualization.projections.Simple2D
public class Simple2D
Dimension-selecting 2D projection.
Field Summary | |
---|---|
private int |
dim1
Dimensions for fast projection mode. |
private int |
dim2
Dimensions for fast projection mode. |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.projections.AbstractProjection |
---|
scales |
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.projections.Projection |
---|
SCALE |
Constructor Summary | |
---|---|
Simple2D(LinearScale[] scales,
int ax1,
int ax2)
Constructor with a given database and axes. |
Method Summary | |
---|---|
protected Vector |
dearrange(Vector v)
Undo the rearrangement of components |
String |
estimateTransformString(double margin,
double width,
double height)
Get a SVG transformation string to bring the contents into the unit cube. |
Pair<DoubleMinMax,DoubleMinMax> |
estimateViewport()
Estimate the viewport requirements |
double[] |
fastProjectDataToRenderSpace(NumberVector<?,?> data)
Project a data vector from data space to rendering space. |
double[] |
fastProjectDataToRenderSpace(Vector data)
Project a data vector from data space to rendering space. |
double[] |
fastProjectRelativeDataToRenderSpace(NumberVector<?,?> data)
Project a data vector from data space to rendering space. |
double[] |
fastProjectRelativeDataToRenderSpace(Vector data)
Project a data vector from data space to rendering space. |
double[] |
fastProjectRelativeScaledToRender(Vector v)
Project a vector from scaled space to rendering space. |
double[] |
fastProjectScaledToRender(Vector v)
Project a vector from scaled space to rendering space. |
BitSet |
getVisibleDimensions2D()
Get a bit set of dimensions that are visible. |
protected Vector |
rearrange(Vector v)
Method to rearrange components |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.projections.AbstractSimpleProjection |
---|
flipSecondEquals, projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.projections.AbstractProjection |
---|
getInputDimensionality, getLongName, getScale, getShortName, projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeScaledToDataSpace, projectRenderToDataSpace, projectScaledToDataSpace |
Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult |
---|
addChildResult, getHierarchy, setHierarchy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult |
---|
getHierarchy, setHierarchy |
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result |
---|
getLongName, getShortName |
Field Detail |
---|
private int dim1
private int dim2
Constructor Detail |
---|
public Simple2D(LinearScale[] scales, int ax1, int ax2)
scales
- Scales to useax1
- First axisax2
- Second axisMethod Detail |
---|
public double[] fastProjectDataToRenderSpace(Vector data)
Projection2D
fastProjectDataToRenderSpace
in interface Projection2D
data
- vector in data space
public double[] fastProjectDataToRenderSpace(NumberVector<?,?> data)
Projection2D
fastProjectDataToRenderSpace
in interface Projection2D
data
- vector in data space
public double[] fastProjectScaledToRender(Vector v)
Projection2D
fastProjectScaledToRender
in interface Projection2D
v
- vector in scaled space
public double[] fastProjectRelativeDataToRenderSpace(Vector data)
Projection2D
fastProjectRelativeDataToRenderSpace
in interface Projection2D
data
- vector in data space
public double[] fastProjectRelativeDataToRenderSpace(NumberVector<?,?> data)
Projection2D
fastProjectRelativeDataToRenderSpace
in interface Projection2D
data
- vector in data space
public double[] fastProjectRelativeScaledToRender(Vector v)
Projection2D
fastProjectRelativeScaledToRender
in interface Projection2D
v
- vector in scaled space
public BitSet getVisibleDimensions2D()
Projection2D
getVisibleDimensions2D
in interface Projection2D
public Pair<DoubleMinMax,DoubleMinMax> estimateViewport()
Projection2D
estimateViewport
in interface Projection2D
public String estimateTransformString(double margin, double width, double height)
Projection2D
estimateTransformString
in interface Projection2D
margin
- extra margin to add.width
- Widthheight
- Height
protected Vector rearrange(Vector v)
AbstractSimpleProjection
rearrange
in class AbstractSimpleProjection
v
- Vector to rearrange
protected Vector dearrange(Vector v)
AbstractSimpleProjection
dearrange
in class AbstractSimpleProjection
v
- Vector to undo the rearrangement
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |