Package ffx.numerics.estimator
Interface BootstrappableEstimator
- All Superinterfaces:
StatisticalEstimator
- All Known Implementing Classes:
BennettAcceptanceRatio
,MultistateBennettAcceptanceRatio
,Zwanzig
The BootstrappableEstimator interface describes a StatisticalEstimator which can use bootstrap
sampling as an additional method of calculating free energy and uncertainty. These will generally
perform non-bootstrap estimation on construction, with estimateDG(true) called to reset the dG and
uncertainty estimates using bootstrapping.
- Since:
- 1.0
- Author:
- Michael J. Schnieders, Jacob M. Litman
-
Method Summary
Modifier and TypeMethodDescriptionReturn a copy of this Estimator.default void
Re-calculates free energy and enthalpy without bootstrapping.void
estimateDG
(boolean randomSamples) Re-calculates free energy and enthalpy.default double
getTotalEnthalpyDifference
(double[] enthalpyDifferences) Obtains bootstrap total enthalpy change.default double
getTotalEnthalpyUncertainty
(double[] enthalpyVariances) Obtains bootstrap enthalpy uncertainty.default double
getTotalFEDifferenceUncertainty
(double[] variances) Obtains bootstrap free energy difference uncertainty.default double
getTotalFreeEnergyDifference
(double[] freeEnergyDifferences) Obtains bootstrap total free energy difference.Methods inherited from interface ffx.numerics.estimator.StatisticalEstimator
getEnthalpyDifferences, getFEDifferenceUncertainties, getFreeEnergyDifferences, getNumberOfBins, getTotalEnthalpyDifference, getTotalFEDifferenceUncertainty, getTotalFreeEnergyDifference
-
Method Details
-
copyEstimator
BootstrappableEstimator copyEstimator()Return a copy of this Estimator. Each implementation should specify its own type as the return type. Intended to make parallelization of bootstrapping easy.- Returns:
- A copy of this Estimator.
-
estimateDG
void estimateDG(boolean randomSamples) Re-calculates free energy and enthalpy.- Parameters:
randomSamples
- Whether to draw random samples with replacement (one bootstrap trial).
-
estimateDG
default void estimateDG()Re-calculates free energy and enthalpy without bootstrapping. -
getTotalFreeEnergyDifference
default double getTotalFreeEnergyDifference(double[] freeEnergyDifferences) Obtains bootstrap total free energy difference. The default implementation sums by-bin free energies.May be over-ridden by non-sequential estimators like MBAR.
- Parameters:
freeEnergyDifferences
- By-bin bootstrap results.- Returns:
- Overall free energy change.
-
getTotalFEDifferenceUncertainty
default double getTotalFEDifferenceUncertainty(double[] variances) Obtains bootstrap free energy difference uncertainty. The default implementation is square root of summed variances.May be over-ridden by non-sequential estimators like MBAR.
- Parameters:
variances
- Variance (not uncertainty) in by-bin bootstrap results.- Returns:
- Overall uncertainty.
-
getTotalEnthalpyDifference
default double getTotalEnthalpyDifference(double[] enthalpyDifferences) Obtains bootstrap total enthalpy change. The default implementation sums by-bin enthalpies.May be over-ridden by non-sequential estimators like MBAR.
- Parameters:
enthalpyDifferences
- By-bin bootstrap results.- Returns:
- Overall enthalpy.
-
getTotalEnthalpyUncertainty
default double getTotalEnthalpyUncertainty(double[] enthalpyVariances) Obtains bootstrap enthalpy uncertainty. The default implementation is square root of summed enthalpy variances.May be over-ridden by non-sequential estimators like MBAR.
- Parameters:
enthalpyVariances
- Variance (not uncertainty) in by-bin bootstrap results.- Returns:
- Overall enthalpy uncertainty.
-