public class Simple1D extends AbstractSimpleProjection implements Projection1D
Modifier and Type | Field and Description |
---|---|
(package private) int |
dnum
Our dimension, starting with 0
|
scales
INVSCALE, SCALE
Constructor and Description |
---|
Simple1D(Projector p,
LinearScale[] scales,
int dnum)
Simple 1D projection using scaling only.
|
Modifier and Type | Method and Description |
---|---|
protected double[] |
dearrange(double[] v)
Undo the rearrangement of components.
|
double |
fastProjectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.
|
double |
fastProjectDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.
|
double |
fastProjectRelativeDataToRenderSpace(double[] 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 |
fastProjectRelativeScaledToRender(double[] v)
Project a vector from scaled space to rendering space.
|
double |
fastProjectScaledToRender(double[] v)
Project a vector from scaled space to rendering space.
|
String |
getMenuName()
Name to display in the menu.
|
protected double[] |
rearrange(double[] v)
Method to rearrange components.
|
flipSecondEquals, projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender
projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeScaledToDataSpace, projectRenderToDataSpace, projectScaledToDataSpace
getInputDimensionality, getProjector, getScale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputDimensionality, getProjector, getScale
public Simple1D(Projector p, LinearScale[] scales, int dnum)
p
- Projectorscales
- Scales to usednum
- Dimension (starting at 0)public double fastProjectDataToRenderSpace(double[] data)
Projection1D
fastProjectDataToRenderSpace
in interface Projection1D
data
- vector in data spacepublic double fastProjectDataToRenderSpace(NumberVector data)
Projection1D
fastProjectDataToRenderSpace
in interface Projection1D
data
- vector in data spacepublic double fastProjectScaledToRender(double[] v)
Projection1D
fastProjectScaledToRender
in interface Projection1D
v
- vector in scaled spacepublic double fastProjectRelativeDataToRenderSpace(double[] data)
Projection1D
fastProjectRelativeDataToRenderSpace
in interface Projection1D
data
- vector in data spacepublic double fastProjectRelativeDataToRenderSpace(NumberVector data)
Projection1D
fastProjectRelativeDataToRenderSpace
in interface Projection1D
data
- vector in data spacepublic double fastProjectRelativeScaledToRender(double[] v)
Projection1D
fastProjectRelativeScaledToRender
in interface Projection1D
v
- vector in scaled spaceprotected double[] rearrange(double[] v)
AbstractSimpleProjection
rearrange
in class AbstractSimpleProjection
v
- double[] to rearrangeprotected double[] dearrange(double[] v)
AbstractSimpleProjection
dearrange
in class AbstractSimpleProjection
v
- double[] to undo the rearrangementpublic String getMenuName()
VisualizationItem
null
or empty string.getMenuName
in interface VisualizationItem
getMenuName
in class AbstractProjection
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.