meshi.energy.pairwiseNonBondedTerms.evRot1BB
Class EVRot1BBEnergy

java.lang.Object
  extended by meshi.energy.AbstractEnergy
      extended by meshi.energy.CooperativeEnergyTerm
          extended by meshi.energy.pairwiseNonBondedTerms.evRot1BB.EVRot1BBEnergy
All Implemented Interfaces:
Attributable, Rot1Arrays, Updateable

public final class EVRot1BBEnergy
extends CooperativeEnergyTerm
implements Rot1Arrays


Nested Class Summary
 
Nested classes/interfaces inherited from class meshi.energy.AbstractEnergy
AbstractEnergy.UpdateableList
 
Field Summary
(package private) static double ALPHA
           
private  int atomListSize
           
private  double[] AtomSumSigmC
           
private  double[] dAtomEnergydEnvior
           
private  double[] forceX
           
private  double[] forceY
           
private  double[] forceZ
           
private  int[] lut
          These fields are for general use in the class
private  double maximalZ
           
private  double[][] means
           
private  double[][] oneOverSTDs
           
private  EVRot1BBParameterList parameters
           
private  double[] residueVals
          These are fields for temporary array results that are needed in the evaluation stage.
 
Fields inherited from class meshi.energy.CooperativeEnergyTerm
atomList, coordinates, dm, DX, relativeDiffTolerance, verySmall, XYZ
 
Fields inherited from class meshi.energy.AbstractEnergy
comment, filter, INFINITY, NaN, on, updateableResources, weight
 
Fields inherited from interface meshi.util.rotamericTools.Rot1Arrays
mean, std
 
Constructor Summary
EVRot1BBEnergy()
           
EVRot1BBEnergy(AtomList atomList, DistanceMatrix dm, EVRot1BBParameterList parameters, double[][] pp, double maximalZ, double weight)
           
 
Method Summary
private  void calcMeansAndStd(double[][] pp)
           
 double evaluate()
          Evaluates the energy term and update the derivatives.
 double evaluate(boolean updateAtoms)
           
 void evaluateAtoms()
          Evaluates the energy term and devides the energy between the atoms.
 void setComment(java.lang.String str)
           
private  void updateSigmVals(Distance dis)
          Here goes the processing of the various sigmoid functions concerning atom1 and atom2 in the Distance - dis.
 
Methods inherited from class meshi.energy.CooperativeEnergyTerm
test
 
Methods inherited from class meshi.energy.AbstractEnergy
addAttribute, comment, getAttribute, handleMissingParameters, isOn, off, on, toArray, toArray, toArray, toArray, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALPHA

static final double ALPHA
See Also:
Constant Field Values

residueVals

private double[] residueVals
These are fields for temporary array results that are needed in the evaluation stage. They are declared as fields so that time will not be waisted on creating new instances of the arrays.


AtomSumSigmC

private double[] AtomSumSigmC

dAtomEnergydEnvior

private double[] dAtomEnergydEnvior

forceX

private double[] forceX

forceY

private double[] forceY

forceZ

private double[] forceZ

lut

private int[] lut
These fields are for general use in the class


atomListSize

private int atomListSize

parameters

private EVRot1BBParameterList parameters

means

private double[][] means

oneOverSTDs

private double[][] oneOverSTDs

maximalZ

private double maximalZ
Constructor Detail

EVRot1BBEnergy

public EVRot1BBEnergy()

EVRot1BBEnergy

public EVRot1BBEnergy(AtomList atomList,
                      DistanceMatrix dm,
                      EVRot1BBParameterList parameters,
                      double[][] pp,
                      double maximalZ,
                      double weight)
Method Detail

setComment

public void setComment(java.lang.String str)

evaluateAtoms

public void evaluateAtoms()
Description copied from class: AbstractEnergy
Evaluates the energy term and devides the energy between the atoms. The energy field of each atom is assigned a value - its contribution to the total energy sum.

Specified by:
evaluateAtoms in class AbstractEnergy

evaluate

public double evaluate()
Description copied from class: AbstractEnergy
Evaluates the energy term and update the derivatives.

Specified by:
evaluate in class AbstractEnergy

evaluate

public final double evaluate(boolean updateAtoms)

updateSigmVals

private final void updateSigmVals(Distance dis)
Here goes the processing of the various sigmoid functions concerning atom1 and atom2 in the Distance - dis. The results are updated in the fields of the CAsolvateDistanceAttribute of dis - sigmaValues.


calcMeansAndStd

private void calcMeansAndStd(double[][] pp)