edu.jhu.bme.smile.commons.optimize.tensor
Class OptimizeTensor

java.lang.Object
  extended by edu.jhu.bme.smile.commons.optimize.tensor.OptimizeTensor

public class OptimizeTensor
extends java.lang.Object

This class is to test the different optimizers in a simple real-world case. All ND optimizers are used to optimize tensors acquired from diffusion weighted imaging.

Author:
Hanlin Wan

Constructor Summary
OptimizeTensor()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static Matrix makeImgMatrix(Matrix m, double bvalue)
          makes the imgMatrix
static Matrix normalizeGrad(double[][] g)
          normalizes the gradient matrix
static void randTensor()
          Creates a random tensor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimizeTensor

public OptimizeTensor()
Method Detail

main

public static void main(java.lang.String[] args)

randTensor

public static void randTensor()
Creates a random tensor.


normalizeGrad

public static Matrix normalizeGrad(double[][] g)
normalizes the gradient matrix

Parameters:
g - gradient matrix to normalize
Returns:
normalized gradient matrix

makeImgMatrix

public static Matrix makeImgMatrix(Matrix m,
                                   double bvalue)
makes the imgMatrix

Parameters:
m - normalized gradient matrix
bvalue - the bvalue
Returns:
imgMatrix