Class ScalarFieldSumGauss

java.lang.Object
  extended by ScalarFieldSumGauss
All Implemented Interfaces:
IScalarField

public class ScalarFieldSumGauss
extends java.lang.Object
implements IScalarField


Nested Class Summary
 class ScalarFieldSumGauss.DimException
           
 
Constructor Summary
ScalarFieldSumGauss()
           
ScalarFieldSumGauss(int nDim)
           
ScalarFieldSumGauss(ScalarFieldSumGauss src)
           
 
Method Summary
 void addGaussian(double lfHeight, Jama.Matrix matCenMass, Jama.Matrix matSigmaInv)
           
 double[] getGradient(double[] arrLoc)
          Gradient at a particular location
 void getGradient(double[] arrLoc, double[] arrRslt)
          Gradient at a particular location
 double getVal(double[] arrLfLoc)
           
 IScalarField makeCopy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalarFieldSumGauss

public ScalarFieldSumGauss()

ScalarFieldSumGauss

public ScalarFieldSumGauss(int nDim)

ScalarFieldSumGauss

public ScalarFieldSumGauss(ScalarFieldSumGauss src)
Method Detail

addGaussian

public void addGaussian(double lfHeight,
                        Jama.Matrix matCenMass,
                        Jama.Matrix matSigmaInv)
                 throws ScalarFieldSumGauss.DimException
Throws:
ScalarFieldSumGauss.DimException

getGradient

public double[] getGradient(double[] arrLoc)
Gradient at a particular location

Specified by:
getGradient in interface IScalarField
Parameters:
arrLoc - place at which to take gradient
Returns:
gradient (of proper dimensionality) as a double []

getGradient

public void getGradient(double[] arrLoc,
                        double[] arrRslt)
Gradient at a particular location

Specified by:
getGradient in interface IScalarField
Parameters:
arrLoc - place at which to take gradient
arrRslt - gradient (of proper dimensionality) as a double []

getVal

public double getVal(double[] arrLfLoc)
Specified by:
getVal in interface IScalarField

makeCopy

public IScalarField makeCopy()
Specified by:
makeCopy in interface IScalarField