| Constructor and Description |
|---|
Sequence()
Creates a new sequence of outcomes.
|
Sequence(java.util.List<java.lang.String> outcomes) |
Sequence(Sequence s) |
Sequence(Sequence s,
java.lang.String outcome,
double p) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String outcome,
double p)
Adds an outcome and probability to this sequence.
|
int |
compareTo(Sequence s) |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getOutcomes()
Returns a list of outcomes for this sequence.
|
double[] |
getProbs()
Returns an array of probabilities associated with the outcomes of this sequence.
|
void |
getProbs(double[] ps)
Populates an array with the probabilities associated with the outcomes of this sequence.
|
double |
getScore()
Returns the score of this sequence.
|
int |
hashCode() |
java.lang.String |
toString() |
public Sequence()
public Sequence(Sequence s)
public Sequence(Sequence s, java.lang.String outcome, double p)
public Sequence(java.util.List<java.lang.String> outcomes)
public int compareTo(Sequence s)
compareTo in interface java.lang.Comparable<Sequence>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void add(java.lang.String outcome,
double p)
outcome - the outcome to be added.p - the probability associated with this outcome.public java.util.List<java.lang.String> getOutcomes()
public double[] getProbs()
public double getScore()
public void getProbs(double[] ps)
ps - a pre-allocated array to use to hold the values of the
probabilities of the outcomes for this sequence.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved