Class OxidationStateCalculator
java.lang.Object
_global.tri.oxidationstates.calculator.OxidationStateCalculator
- Direct Known Subclasses:
FrequencyCalculator,LikelihoodCalculator
A general class for calculating the most likely sets of oxidation states for
a given set of ion types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLikelyOxidationStates(Composition composition) Calculate the most likely oxidation states for the given compositiongetLikelyOxidationStates(String compositionString) Calculate the most likely oxidation states for the given compositionabstract OxidationStateSetgetLikelyOxidationStates(String[] ionTypeIDs, double[] counts) Calculate the most likely oxidation states for the given ion types with the given composition.getLikelyOxidationStates(matsci.structure.Structure structure) Calculate the most likely oxidation states for the elements in a given structure.
-
Constructor Details
-
OxidationStateCalculator
public OxidationStateCalculator()
-
-
Method Details
-
getLikelyOxidationStates
Calculate the most likely oxidation states for the elements in a given structure. This method will not identify polyatomic ions. If you would like to use polyatomic ions, calculate the likely oxidation states by composition instead.- Parameters:
structure- The given structure- Returns:
- the most likely oxidation states for the elements in a given structure.
-
getLikelyOxidationStates
Calculate the most likely oxidation states for the given composition- Parameters:
compositionString- The given composition- Returns:
- the most likely oxidation states for the given composition
-
getLikelyOxidationStates
Calculate the most likely oxidation states for the given composition- Parameters:
composition- The given composition- Returns:
- the most likely oxidation states for the given composition
-
getLikelyOxidationStates
Calculate the most likely oxidation states for the given ion types with the given composition.- Parameters:
ionTypeIDs- The IDS of the ion types.counts- The composition of each ion type, ordered in the way that corresponds to the ordering of ionTypeIDs.- Returns:
- the most likely oxidation states for the given ion types with the given composition.
-