edu.tufts.cs.geometry
Class Projection
java.lang.Object
edu.tufts.cs.geometry.Transformation
edu.tufts.cs.geometry.Projection
- Direct Known Subclasses:
- PCAProjection, TrivialProjection
public abstract class Projection
- extends Transformation
A Projection is a specific kind of Transformation
that reduces the dimensionality of a PointSet.
|
Method Summary |
void |
project(int dimension,
javax.vecmath.GMatrix data)
|
void |
project(int dimension,
javax.vecmath.GMatrix sourceData,
javax.vecmath.GMatrix data)
|
abstract void |
projectDown(int dimension,
javax.vecmath.GMatrix data)
Apply the projection with a specific target dimension to a given GMatrix
containing the data to be modified. |
void |
projectDown(int dimension,
javax.vecmath.GMatrix sourceData,
javax.vecmath.GMatrix data)
|
static void |
projectUp(int dimension,
javax.vecmath.GMatrix data)
|
void |
setTargetDimension(int dimension)
Projection instances can remember a target dimension so they
can be applied without parameters. |
void |
transform(javax.vecmath.GMatrix data)
Apply the specific transformation to the data given |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetDimension
protected int targetDimension
Projection
public Projection()
transform
public void transform(javax.vecmath.GMatrix data)
- Description copied from class:
Transformation
- Apply the specific transformation to the data given
- Specified by:
transform in class Transformation
- Parameters:
data - the data to be modified
setTargetDimension
public void setTargetDimension(int dimension)
Projection instances can remember a target dimension so they
can be applied without parameters. The default is 2. This function sets
the target dimension.
- Parameters:
dimension - the desired final dimension for the PointSet
projectDown
public abstract void projectDown(int dimension,
javax.vecmath.GMatrix data)
- Apply the projection with a specific target dimension to a given GMatrix
containing the data to be modified.
- Parameters:
dimension - the desired final dimension for the PointSetdata - the GMatrix on which to perform the transformation
projectDown
public void projectDown(int dimension,
javax.vecmath.GMatrix sourceData,
javax.vecmath.GMatrix data)
projectUp
public static void projectUp(int dimension,
javax.vecmath.GMatrix data)
project
public void project(int dimension,
javax.vecmath.GMatrix data)
project
public void project(int dimension,
javax.vecmath.GMatrix sourceData,
javax.vecmath.GMatrix data)