Package elki.visualization.projections
Interface ProjectionParallel
-
- All Superinterfaces:
Projection
,VisualizationItem
- All Known Implementing Classes:
SimpleParallel
public interface ProjectionParallel extends Projection
Projection to parallel coordinates that allows reordering and inversion of axes. Note: when using this projection, pay attention to the two different schemes of dimension numbering: by input dimension and by axis position.- Since:
- 0.5.0
- Author:
- Robert Rödler, Erich Schubert
-
-
Field Summary
-
Fields inherited from interface elki.visualization.projections.Projection
INVSCALE, SCALE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]
fastProjectDataToRenderSpace(double[] v)
Fast project a vector from data to render spacedouble
fastProjectDataToRenderSpace(double value, int axis)
Project the value of a single axis to its display valuedouble[]
fastProjectDataToRenderSpace(NumberVector v)
Fast project a vector from data to render spacedouble
fastProjectRenderToDataSpace(double value, int axis)
Project a display value back to the original data spaceint
getAxisForDim(int truedim)
Find the axis assigned to the given dimension.LinearScale
getAxisScale(int axis)
Get scale for the given axisint
getDimForAxis(int axis)
Get the dimension for the given axis numberint
getDimForVisibleAxis(int axis)
Get the dimension for the given visible axisint
getVisibleDimensions()
Get the number of visible dimension.boolean
isAxisInverted(int axis)
Get inversion flag of axis.boolean
isAxisVisible(int axis)
Test whether the current axis is visibleboolean
isDimInverted(int truedim)
Get inversion flag of dimension.void
moveAxis(int axis, int rn)
shift a dimension to another positionvoid
setAxisInverted(int axis, boolean bool)
Set inversion flag of axis.void
setAxisVisible(int axis, boolean vis)
Set the visibility of the axis.void
setDimInverted(int truedim, boolean bool)
Set inversion flag of a dimension.void
swapAxes(int a, int b)
Exchange axes A and Bvoid
toggleAxisInverted(int axis)
Toggle inverted flag of axis.void
toggleAxisVisible(int axis)
Toggle visibility of the axis.void
toggleDimInverted(int truedim)
Toggle inverted flag of dimension.-
Methods inherited from interface elki.visualization.projections.Projection
getInputDimensionality, getProjector, getScale
-
Methods inherited from interface elki.visualization.VisualizationItem
getMenuName
-
-
-
-
Method Detail
-
isAxisInverted
boolean isAxisInverted(int axis)
Get inversion flag of axis.- Parameters:
axis
- Axis (reordered) position- Returns:
- Inversion flag
-
setAxisInverted
void setAxisInverted(int axis, boolean bool)
Set inversion flag of axis.- Parameters:
axis
- Axis (reordered) positionbool
- Value of inversion flag
-
toggleAxisInverted
void toggleAxisInverted(int axis)
Toggle inverted flag of axis.- Parameters:
axis
- Axis (reordered) position
-
isDimInverted
boolean isDimInverted(int truedim)
Get inversion flag of dimension.- Parameters:
truedim
- Dimension in original numbering- Returns:
- Inversion flag
-
setDimInverted
void setDimInverted(int truedim, boolean bool)
Set inversion flag of a dimension.- Parameters:
truedim
- Dimension in original numberingbool
- Value of inversion flag
-
toggleDimInverted
void toggleDimInverted(int truedim)
Toggle inverted flag of dimension.- Parameters:
truedim
- Dimension in original numbering
-
getAxisScale
LinearScale getAxisScale(int axis)
Get scale for the given axis- Parameters:
axis
- Axis (reordered) position- Returns:
- Axis scale
-
isAxisVisible
boolean isAxisVisible(int axis)
Test whether the current axis is visible- Parameters:
axis
- Axis (reordered) position- Returns:
- Visibility of axis
-
setAxisVisible
void setAxisVisible(int axis, boolean vis)
Set the visibility of the axis.- Parameters:
axis
- Axis numbervis
- Visibility status
-
toggleAxisVisible
void toggleAxisVisible(int axis)
Toggle visibility of the axis.- Parameters:
axis
- Axis number
-
getVisibleDimensions
int getVisibleDimensions()
Get the number of visible dimension.- Returns:
- Number of visible dimensions
-
swapAxes
void swapAxes(int a, int b)
Exchange axes A and B- Parameters:
a
- First axisb
- Second axis
-
moveAxis
void moveAxis(int axis, int rn)
shift a dimension to another position- Parameters:
axis
- axis to shiftrn
- new position
-
getDimForAxis
int getDimForAxis(int axis)
Get the dimension for the given axis number- Parameters:
axis
- Axis number- Returns:
- Dimension
-
getDimForVisibleAxis
int getDimForVisibleAxis(int axis)
Get the dimension for the given visible axis- Parameters:
axis
- Axis number (visible axes only)- Returns:
- Dimension
-
fastProjectDataToRenderSpace
double[] fastProjectDataToRenderSpace(double[] v)
Fast project a vector from data to render space- Parameters:
v
- Input vector- Returns:
- Vector with reordering, inversions and scales applied.
-
fastProjectDataToRenderSpace
double[] fastProjectDataToRenderSpace(NumberVector v)
Fast project a vector from data to render space- Parameters:
v
- Input vector- Returns:
- Vector with reordering, inversions and scales applied.
-
fastProjectDataToRenderSpace
double fastProjectDataToRenderSpace(double value, int axis)
Project the value of a single axis to its display value- Parameters:
value
- Input valueaxis
- Axis to use for scaling and inversion- Returns:
- Transformed value
-
fastProjectRenderToDataSpace
double fastProjectRenderToDataSpace(double value, int axis)
Project a display value back to the original data space- Parameters:
value
- transformed valueaxis
- Axis to use for scaling and inversion- Returns:
- Original value
-
getAxisForDim
int getAxisForDim(int truedim)
Find the axis assigned to the given dimension.- Parameters:
truedim
- Dimension- Returns:
- Axis number
-
-