edu.jhu.cs.cisst.algorithms.optimize.fmg.smoother
Class DampedJacobi

java.lang.Object
  extended by edu.jhu.cs.cisst.algorithms.optimize.fmg.smoother.DampedJacobi
All Implemented Interfaces:
Smoother

public final class DampedJacobi
extends java.lang.Object
implements Smoother

An implementation of the damped Jacobi method of relaxing (thereby smoothing) the solution of a linear elliptic PDE.

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

Field Summary
static double IDEAL_WEIGHTING_FACTOR
          in theory the ideal weighting factor, i.e.
 
Constructor Summary
DampedJacobi(PDE pde, double weightingFactor)
          construct from PDE and weighting factor.
 
Method Summary
 BoundaryGrid smooth(ConstBoundaryGrid u, ConstNoBoundaryGrid f)
          implements method from Smoother.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDEAL_WEIGHTING_FACTOR

public static final double IDEAL_WEIGHTING_FACTOR
in theory the ideal weighting factor, i.e. the relative contribution of a new iteration value at a grid element.

See Also:
Constant Field Values
Constructor Detail

DampedJacobi

public DampedJacobi(PDE pde,
                    double weightingFactor)
construct from PDE and weighting factor.

Parameters:
pde - a representation of the PDE
weightingFactor - the relative contribution of a new iteration value at a grid element (0 < weightingFactor <= 1)
Method Detail

smooth

public BoundaryGrid smooth(ConstBoundaryGrid u,
                           ConstNoBoundaryGrid f)
implements method from Smoother.

Specified by:
smooth in interface Smoother
Parameters:
u - the u
f - the f
Returns:
the boundary grid
See Also:
Smoother.smooth(edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstBoundaryGrid, edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstNoBoundaryGrid)