org.apache.mahout.math.matrix.doublealgo
Class Stencil

java.lang.Object
  extended by org.apache.mahout.math.matrix.doublealgo.Stencil

Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.

@Deprecated
public class Stencil
extends java.lang.Object


Method Summary
static int stencil27(DoubleMatrix3D A, Double27Function function, int maxIterations, DoubleMatrix3DProcedure hasConverged, int convergenceIterations)
          Deprecated. 27 point stencil operation.
static int stencil9(DoubleMatrix2D A, Double9Function function, int maxIterations, DoubleMatrix2DProcedure hasConverged, int convergenceIterations)
          Deprecated. 9 point stencil operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stencil27

public static int stencil27(DoubleMatrix3D A,
                            Double27Function function,
                            int maxIterations,
                            DoubleMatrix3DProcedure hasConverged,
                            int convergenceIterations)
Deprecated. 
27 point stencil operation. Applies a function to a moving 3 x 3 x 3 window.

Parameters:
A - the matrix to operate on.
function - the function to be applied to each window.
maxIterations - the maximum number of times the stencil shall be applied to the matrix. Should be a multiple of 2 because two iterations are always done in one atomic step.
hasConverged - Convergence condition; will return before maxIterations are done when hasConverged.apply(A)==true. Set this parameter to null to indicate that no convergence checks shall be made.
convergenceIterations - the number of iterations to pass between each convergence check. (Since a convergence may be expensive, you may want to do it only every 2,4 or 8 iterations.)
Returns:
the number of iterations actually executed.

stencil9

public static int stencil9(DoubleMatrix2D A,
                           Double9Function function,
                           int maxIterations,
                           DoubleMatrix2DProcedure hasConverged,
                           int convergenceIterations)
Deprecated. 
9 point stencil operation. Applies a function to a moving 3 x 3 window.

Parameters:
A - the matrix to operate on.
function - the function to be applied to each window.
maxIterations - the maximum number of times the stencil shall be applied to the matrix. Should be a multiple of 2 because two iterations are always done in one atomic step.
hasConverged - Convergence condition; will return before maxIterations are done when hasConverged.apply(A)==true. Set this parameter to null to indicate that no convergence checks shall be made.
convergenceIterations - the number of iterations to pass between each convergence check. (Since a convergence may be expensive, you may want to do it only every 2,4 or 8 iterations.)
Returns:
the number of iterations actually executed.


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.