SciLib.SP.Transform
Class Trans

java.lang.Object
  extended by SciLib.SP.Transform.Trans

public final class Trans
extends java.lang.Object

This class defines some simple transformation methods.


Field Summary
static int CUBEROOT
           
static int FFT
           
static int IDENTITY
           
static int LOG
           
static int NORMALIZE
           
static int NORMALIZE1
           
static int SIGMOID
           
static int SIGMOID2
           
 
Constructor Summary
Trans()
           
 
Method Summary
static void cuberoot(vector x)
          cuberoot transform of a vector
static void log(vector x)
          Take logarithm of a vector that has positive elements
static void normalize(vector x)
          normalize a vector x so that it has norm 1
static void normalize1(vector x)
          normalize a vector by so that it has all elements between 0 and 1
static void sigmoid(vector x)
          Sigmoid transform of a vector
static void sigmoid2(vector x)
          Sigmoid2 transform of a vector
static void transform(matrix x, int type)
          make a transformation
static void transform(vector v, int type)
          make a transformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY

public static final int IDENTITY
See Also:
Constant Field Values

NORMALIZE

public static final int NORMALIZE
See Also:
Constant Field Values

NORMALIZE1

public static final int NORMALIZE1
See Also:
Constant Field Values

FFT

public static final int FFT
See Also:
Constant Field Values

SIGMOID

public static final int SIGMOID
See Also:
Constant Field Values

SIGMOID2

public static final int SIGMOID2
See Also:
Constant Field Values

CUBEROOT

public static final int CUBEROOT
See Also:
Constant Field Values

LOG

public static final int LOG
See Also:
Constant Field Values
Constructor Detail

Trans

public Trans()
Method Detail

normalize

public static void normalize(vector x)
normalize a vector x so that it has norm 1

Parameters:
x - A vector

normalize1

public static void normalize1(vector x)
normalize a vector by so that it has all elements between 0 and 1

Parameters:
x - A vector

log

public static void log(vector x)
Take logarithm of a vector that has positive elements

Parameters:
x - A vector

sigmoid

public static void sigmoid(vector x)
Sigmoid transform of a vector

Parameters:
x - A vector

sigmoid2

public static void sigmoid2(vector x)
Sigmoid2 transform of a vector

Parameters:
x - A vector

cuberoot

public static void cuberoot(vector x)
cuberoot transform of a vector

Parameters:
x - A vector

transform

public static void transform(vector v,
                             int type)
make a transformation

Parameters:
v - the original vector
type - Transformation type

transform

public static void transform(matrix x,
                             int type)
make a transformation

Parameters:
x - the original matrix
type - Transformation type