public abstract class AbstractModel extends java.lang.Object implements MaxentModel
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractModel.ModelType |
| Constructor and Description |
|---|
AbstractModel(Context[] params,
java.lang.String[] predLabels,
java.lang.String[] outcomeNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAllOutcomes(double[] ocs)
Return a string matching all the outcome names with all the
probabilities produced by the
eval(String[] context)
method. |
java.lang.String |
getBestOutcome(double[] ocs)
Return the name of the outcome corresponding to the highest likelihood
in the parameter ocs.
|
java.lang.Object[] |
getDataStructures()
Provides the fundamental data structures which encode the maxent model
information.
|
int |
getIndex(java.lang.String outcome)
Gets the index associated with the String name of the given outcome.
|
AbstractModel.ModelType |
getModelType() |
int |
getNumOutcomes()
Returns the number of outcomes for this model.
|
java.lang.String |
getOutcome(int i)
Return the name of an outcome corresponding to an int id.
|
int |
hashCode() |
getClass, notify, notifyAll, toString, wait, wait, waiteval, eval, evalpublic AbstractModel(Context[] params, java.lang.String[] predLabels, java.lang.String[] outcomeNames)
public final java.lang.String getBestOutcome(double[] ocs)
getBestOutcome in interface MaxentModelocs - A double[] as returned by the eval(String[] context)
method.public AbstractModel.ModelType getModelType()
public final java.lang.String getAllOutcomes(double[] ocs)
eval(String[] context)
method.getAllOutcomes in interface MaxentModelocs - A double[] as returned by the
eval(String[] context)
method.double[] ocs)
for each one.public final java.lang.String getOutcome(int i)
getOutcome in interface MaxentModeli - An outcome id.public int getIndex(java.lang.String outcome)
getIndex in interface MaxentModeloutcome - the String name of the outcome for which the
index is desiredpublic int getNumOutcomes()
MaxentModelgetNumOutcomes in interface MaxentModelpublic final java.lang.Object[] getDataStructures()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved