public class Simple1D extends AbstractSimpleProjection implements Projection1D
Modifier and Type | Field and Description |
---|---|
(package private) int |
dnum
Our dimension, starting with 0
|
scales
SCALE
Constructor and Description |
---|
Simple1D(LinearScale[] scales,
int dnum)
Simple 1D projection using scaling only.
|
Modifier and Type | Method and Description |
---|---|
protected Vector |
dearrange(Vector v)
Undo the rearrangement of components
|
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.
|
protected Vector |
rearrange(Vector v)
Method to rearrange components
|
flipSecondEquals, projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender
getInputDimensionality, getLongName, getScale, getShortName, projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeScaledToDataSpace, projectRenderToDataSpace, projectScaledToDataSpace
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputDimensionality, getScale, projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeRenderToScaled, projectRelativeScaledToDataSpace, projectRelativeScaledToRender, projectRenderToDataSpace, projectRenderToScaled, projectScaledToDataSpace, projectScaledToRender
getHierarchy, setHierarchy
getLongName, getShortName
public Simple1D(LinearScale[] scales, int dnum)
scales
- Scales to usednum
- Dimension (starting at 1)public double fastProjectDataToRenderSpace(Vector 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(Vector v)
Projection1D
fastProjectScaledToRender
in interface Projection1D
v
- vector in scaled spacepublic double fastProjectRelativeDataToRenderSpace(Vector 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(Vector v)
Projection1D
fastProjectRelativeScaledToRender
in interface Projection1D
v
- vector in scaled spaceprotected Vector rearrange(Vector v)
AbstractSimpleProjection
rearrange
in class AbstractSimpleProjection
v
- Vector to rearrangeprotected Vector dearrange(Vector v)
AbstractSimpleProjection
dearrange
in class AbstractSimpleProjection
v
- Vector to undo the rearrangement