Class LikelihoodStateSet
java.lang.Object
_global.tri.oxidationstates.calculator.OxidationStateSet
_global.tri.oxidationstates.calculator.likelihood.LikelihoodStateSet
- All Implemented Interfaces:
Comparable<LikelihoodStateSet>
An OxidationStateSet that keeps track of properties specific to the
likelihood score, such as the likelihood score and electronic chemical
potential.
-
Constructor Summary
ConstructorsConstructorDescriptionLikelihoodStateSet(IonFactory.Ion[] ions, double[] weights, double maxLikelihood, double optimalFermiLevel) Initialize the LikelihoodStateSet -
Method Summary
Modifier and TypeMethodDescriptionintdoubleReturns the likelihood score at the optimal electronic chemical potentialdoubleReturns the optimal electronic chemical potential (i.e.Methods inherited from class _global.tri.oxidationstates.calculator.OxidationStateSet
getIons, getWeight, getWeights, isMixedValence, toString
-
Constructor Details
-
LikelihoodStateSet
public LikelihoodStateSet(IonFactory.Ion[] ions, double[] weights, double maxLikelihood, double optimalFermiLevel) Initialize the LikelihoodStateSet- Parameters:
ions- The ions in this setweights- The composition of each ion, in the same order as the ions arraymaxLikelihood- The likelihood score at the optimal electronic chemical potentialoptimalFermiLevel- The optimal electronic chemical potential (i.e. the one that maximizes the likelihood score)
-
-
Method Details
-
getMaxLikelihood
public double getMaxLikelihood()Returns the likelihood score at the optimal electronic chemical potential- Returns:
- the likelihood score at the optimal electronic chemical potential
-
getOptimalFermiLevel
public double getOptimalFermiLevel()Returns the optimal electronic chemical potential (i.e. the one that maximizes the likelihood score)- Returns:
- the optimal electronic chemical potential (i.e. the one that maximizes the likelihood score)
-
compareTo
- Specified by:
compareToin interfaceComparable<LikelihoodStateSet>
-