edu.jhu.cs.cisst.algorithms.optimize.fmg
Class StencilImpl

java.lang.Object
  extended by edu.jhu.cs.cisst.algorithms.optimize.fmg.StencilImpl
All Implemented Interfaces:
Stencil

public final class StencilImpl
extends java.lang.Object
implements Stencil

A concrete implementation of interface Stencil.

Author:
Gerald Loeffler (Gerald.Loeffler@univie.ac.at)

Constructor Summary
StencilImpl(double[][][] array)
          construct from the 27 double values in an array.
StencilImpl(double d01, double d02, double d03, double d04, double d05, double d06, double d07, double d08, double d09, double d10, double d11, double d12, double d13, double d14, double d15, double d16, double d17, double d18, double d19, double d20, double d21, double d22, double d23, double d24, double d25, double d26, double d27)
          construct from the 27 double values.
 
Method Summary
 double get(int x, int y, int z)
          implements method from Stencil.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StencilImpl

public StencilImpl(double[][][] array)
construct from the 27 double values in an array.

Parameters:
array - a 3x3x3 array holding the 27 double values for the stencil

StencilImpl

public StencilImpl(double d01,
                   double d02,
                   double d03,
                   double d04,
                   double d05,
                   double d06,
                   double d07,
                   double d08,
                   double d09,
                   double d10,
                   double d11,
                   double d12,
                   double d13,
                   double d14,
                   double d15,
                   double d16,
                   double d17,
                   double d18,
                   double d19,
                   double d20,
                   double d21,
                   double d22,
                   double d23,
                   double d24,
                   double d25,
                   double d26,
                   double d27)
construct from the 27 double values.

Parameters:
d01 - double value for position (-1,-1,-1) of the stencil
d02 - double value for position (-1,-1,0) of the stencil
d26 - double value for position (1,1,0) of the stencil
d27 - double value for position (1,1,1) of the stencil
d03 - the d03
d04 - the d04
d05 - the d05
d06 - the d06
d07 - the d07
d08 - the d08
d09 - the d09
d10 - the d10
d11 - the d11
d12 - the d12
d13 - the d13
d14 - the d14
d15 - the d15
d16 - the d16
d17 - the d17
d18 - the d18
d19 - the d19
d20 - the d20
d21 - the d21
d22 - the d22
d23 - the d23
d24 - the d24
d25 - the d25
Method Detail

get

public double get(int x,
                  int y,
                  int z)
implements method from Stencil.

Specified by:
get in interface Stencil
Parameters:
x - the x
y - the y
z - the z
Returns:
the double
See Also:
Stencil.get(int, int, int)