public class OnTheFlyPhaseDiagramStatistics extends PhaseDiagramStatistics
CommonCompositions, CompositionComparator, ElementProbability, MinDistance, NComponents, NCompounds, StructureProbability
Constructor and Description |
---|
OnTheFlyPhaseDiagramStatistics() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateStructureProbabilities()
Calculate the probability of each prototype appearing in a phase diagram.
|
protected int |
getCompositionIndex(double[] fracs)
Look up a composition in PhaseDiagramStatistics.CommonCompositions.
|
protected int[] |
getCompoundVector(int[] sites)
Given a list of elements on each site of a structure, determine which prototypes
exist on each site of the corresponding phase diagram.
|
protected boolean |
incrementCounter(int[] counter)
Increment a counter that iterates through all combinations of elements in a phase diagram.
|
protected void |
processCompounds(java.util.Map<CompositionEntry,java.lang.String> compounds)
Given a list of compounds, mark which phase diagrams they appear in.
|
addCompositionBin, calculateProbabilities, compositionsAreEqual, createLookupKey, evaluateProbability, getClosestBin, getCommonCompositions, getCumulants, getPrototypeNames, getVariableVector, importCompoundDataset, importKnownCompounds, importKnownCompounds, NComponents, NCompositions, NCompounds, orderComposition, printCumulants, roundComposition
protected void processCompounds(java.util.Map<CompositionEntry,java.lang.String> compounds)
PhaseDiagramStatistics
processCompounds
in class PhaseDiagramStatistics
compounds
- Map of phase diagrams to be addedprotected int[] getCompoundVector(int[] sites)
PhaseDiagramStatistics
getCompoundVector
in class PhaseDiagramStatistics
sites
- Which elements are on each siteprotected int getCompositionIndex(double[] fracs)
fracs
- Composition to look upprotected void calculateStructureProbabilities()
PhaseDiagramStatistics
calculateStructureProbabilities
in class PhaseDiagramStatistics
protected boolean incrementCounter(int[] counter)
counter
- Counter to be incremented