|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.ihmc.utilities.math.LinearMapping
public class LinearMapping
Title: LinearMapping
Description: Defines a mapping from an n dimensional input space to an n dimensional output space, where the transformation between the two is a simple scaling of each dimension.
Copyright: Copyright (c) 2007
Company: IHMC
Constructor Summary | |
---|---|
LinearMapping(java.util.ArrayList<double[]> inputDimensions,
java.util.ArrayList<double[]> outputDimensions)
Creates a mapping in n space to another n space that performs a simple scale in each dimension |
Method Summary | |
---|---|
double[] |
mapFromInputSpaceToOutputSpace(double[] input)
|
void |
mapFromInputSpaceToOutputSpacePacked(double[] input,
double[] output)
Takes a vector in the input space, and copies the mapped vector in the output space into the supplied output array. |
double[] |
mapFromOutputSpaceToInputSpace(double[] output)
|
void |
mapFromOutputSpaceToInputSpacePacked(double[] input,
double[] output)
Takes a vector in the output space, and copies the mapped vector in the input space into the supplied input array. |
static LinearMapping |
readIn(java.io.BufferedReader bufferedReader)
|
void |
writeOut(java.io.PrintWriter printWriter)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearMapping(java.util.ArrayList<double[]> inputDimensions, java.util.ArrayList<double[]> outputDimensions)
inputDimensions
- ArrayList list of length n, each element is a double array of length two, containing the min and max values for that dimension in the input spaceoutputDimensions
- ArrayList list of length n, each element is a double array of length two, containing the min and max values for that dimension in the output spaceMethod Detail |
---|
public double[] mapFromInputSpaceToOutputSpace(double[] input)
public void writeOut(java.io.PrintWriter printWriter)
public static LinearMapping readIn(java.io.BufferedReader bufferedReader) throws java.io.IOException
java.io.IOException
public void mapFromInputSpaceToOutputSpacePacked(double[] input, double[] output)
input
- double[]output
- double[]public double[] mapFromOutputSpaceToInputSpace(double[] output)
public void mapFromOutputSpaceToInputSpacePacked(double[] input, double[] output)
input
- double[]output
- double[]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |